vim-patch:8.0.1154: 'indentkeys' does not work properly (#8980)

Problem:    'indentkeys' does not work properly. (Gary Johnson)
Solution:   Get the cursor line again. (Christian Brabandt, closes vim/vim#2151)
1b38344e00
This commit is contained in:
Jan Edmund Lazo
2018-09-11 13:55:46 -04:00
committed by Justin M. Keyes
parent d6b3c09129
commit 61df24b998
2 changed files with 28 additions and 1 deletions

View File

@@ -6950,7 +6950,7 @@ bool in_cinkeys(int keytyped, int when, bool line_is_empty)
if (match && try_match_word && !try_match) {
/* "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;
}