summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-26 20:04:54 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-26 20:04:54 +0200
commit1b38344e00af65df12946fffda7f3201621c35ef (patch)
tree164ba42c990c2ed7c7ffa903799b164c225060f2 /src/edit.c
parent97fbc404fc56f76df12b2d2658b1d6efda28d5dd (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.c2
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;
}