diff options
author | Daniel Hahler <github@thequod.de> | 2019-08-08 21:40:29 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-08-08 21:40:29 -0400 |
commit | 480794146fe09581d8459ea256e16e8e059b3f19 (patch) | |
tree | 6d4a3f3dccfbf57d0c90794526e5d86819722f7e | |
parent | d1ce15f696b719bef12c1e38875c6016c60aafac (diff) | |
download | rneovim-480794146fe09581d8459ea256e16e8e059b3f19.tar.gz rneovim-480794146fe09581d8459ea256e16e8e059b3f19.tar.bz2 rneovim-480794146fe09581d8459ea256e16e8e059b3f19.zip |
f_spellbadword: set len=0 for non-found word
`len` is used with `list_append_string` later, and should reflect the
length of `word` (i.e. 0 when not setting word / breaking above).
Ref: neovim/neovim#9782 (comment)
-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 b6e292219f..cc9dfcf27b 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -16764,6 +16764,7 @@ static void f_spellbadword(typval_T *argvars, typval_T *rettv, FunPtr fptr) } str += len; capcol -= len; + len = 0; } } } |