commit | 1b38344e00af65df12946fffda7f3201621c35ef | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Sep 26 20:04:54 2017 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Sep 26 20:04:54 2017 +0200 |
tree | 164ba42c990c2ed7c7ffa903799b164c225060f2 | |
parent | 97fbc404fc56f76df12b2d2658b1d6efda28d5dd [diff] [blame] |
patch 8.0.1154: 'indentkeys' does not work properly Problem: 'indentkeys' does not work properly. (Gary Johnson) Solution: Get the cursor line again. (Christian Brabandt, closes #2151)
diff --git a/src/edit.c b/src/edit.c index 14201a2..5f51306 100644 --- a/src/edit.c +++ b/src/edit.c
@@ -8202,7 +8202,7 @@ { /* "0=word": Check if there are only blanks before the * word. */ - if (getwhitecols(line) != + if (getwhitecols_curline() != (int)(curwin->w_cursor.col - (p - look))) match = FALSE; }