diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2018-09-11 13:55:46 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-09-11 19:55:46 +0200 |
commit | 61df24b9982c26c068e5fafbc79fd059a067d998 (patch) | |
tree | 763ac76a3580a635aa3bafc46c5d539a96fdd8b4 /src/nvim/edit.c | |
parent | d6b3c09129dee687b33db719be5bb3e2b51deccc (diff) | |
download | rneovim-61df24b9982c26c068e5fafbc79fd059a067d998.tar.gz rneovim-61df24b9982c26c068e5fafbc79fd059a067d998.tar.bz2 rneovim-61df24b9982c26c068e5fafbc79fd059a067d998.zip |
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)
https://github.com/vim/vim/commit/1b38344e00af65df12946fffda7f3201621c35ef
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index e42fe4efb0..53fe164050 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -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; } |