0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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)
This commit is contained in:
Bram Moolenaar
2017-09-26 20:04:54 +02:00
parent 97fbc404fc
commit 1b38344e00
3 changed files with 30 additions and 1 deletions

View File

@@ -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;
}