commit | 0c779e8e4831c538918ae835ce3365af028e36ea | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Aug 09 17:01:02 2019 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Aug 09 17:01:02 2019 +0200 |
tree | fe7991d17cafef78371fe46b804f9b4ef428750f | |
parent | 820680b9ff1de8699156c7b060f97e5c0b87ad15 [diff] [blame] |
patch 8.1.1833: allocating a bit too much when there is no bad word. Problem: Allocating a bit too much when spellbadword() does not find a bad word. Solution: Reset "len" when going to the next word. (Daniel Hahler, closes #4788)
diff --git a/src/evalfunc.c b/src/evalfunc.c index 07a6768..29857d3 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c
@@ -10755,6 +10755,7 @@ } str += len; capcol -= len; + len = 0; } } }