Mercurial > vim
comparison src/evalfunc.c @ 17672:d63b44015f4d v8.1.1833
patch 8.1.1833: allocating a bit too much when there is no bad word.
commit https://github.com/vim/vim/commit/0c779e8e4831c538918ae835ce3365af028e36ea
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 9 17:01:02 2019 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 09 Aug 2019 17:15:07 +0200 |
parents | 1be29c149103 |
children | 14ac8c31e598 |
comparison
equal
deleted
inserted
replaced
17671:276213598138 | 17672:d63b44015f4d |
---|---|
10753 word = str; | 10753 word = str; |
10754 break; | 10754 break; |
10755 } | 10755 } |
10756 str += len; | 10756 str += len; |
10757 capcol -= len; | 10757 capcol -= len; |
10758 len = 0; | |
10758 } | 10759 } |
10759 } | 10760 } |
10760 } | 10761 } |
10761 #endif | 10762 #endif |
10762 | 10763 |