diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-03-24 19:42:16 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-08-08 21:31:20 -0400 |
commit | 18888c15fc456040f860cfe55e1bf6be3dfd1dbe (patch) | |
tree | 47929fcb20b0496d2c4e358ac2b2be91f5db1dcf | |
parent | 25fff17d19f5927987526bd4d7c4bd4b73603241 (diff) | |
download | rneovim-18888c15fc456040f860cfe55e1bf6be3dfd1dbe.tar.gz rneovim-18888c15fc456040f860cfe55e1bf6be3dfd1dbe.tar.bz2 rneovim-18888c15fc456040f860cfe55e1bf6be3dfd1dbe.zip |
vim-patch:8.1.0199: spellbadword() does not check for caps error
Problem: spellbadword() does not check for caps error. (Dominique Pelle)
Solution: Adjust capcol when advancing.
https://github.com/vim/vim/commit/66ab916935585391b2efaa8e39075e1ef94717b1
-rw-r--r-- | src/nvim/eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 7ffa59f298..b6e292219f 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -16763,6 +16763,7 @@ static void f_spellbadword(typval_T *argvars, typval_T *rettv, FunPtr fptr) break; } str += len; + capcol -= len; } } } |