diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-09-26 20:04:54 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-09-26 20:04:54 +0200 |
commit | 1b38344e00af65df12946fffda7f3201621c35ef (patch) | |
tree | 164ba42c990c2ed7c7ffa903799b164c225060f2 /src/edit.c | |
parent | 97fbc404fc56f76df12b2d2658b1d6efda28d5dd (diff) |
patch 8.0.1154: 'indentkeys' does not work properlyv8.0.1154
Problem: 'indentkeys' does not work properly. (Gary Johnson)
Solution: Get the cursor line again. (Christian Brabandt, closes #2151)
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c index 14201a2ec3..5f513068ae 100644 --- a/src/edit.c +++ b/src/edit.c @@ -8202,7 +8202,7 @@ in_cinkeys( { /* "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; } |