# HG changeset patch # User Bram Moolenaar # Date 1565363707 -7200 # Node ID d63b44015f4d75198b4d429e5ecff2e94572cb6f # Parent 276213598138c8a463ee98987147b90b75143c0e 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 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) diff --git a/src/evalfunc.c b/src/evalfunc.c --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -10755,6 +10755,7 @@ f_spellbadword(typval_T *argvars UNUSED, } str += len; capcol -= len; + len = 0; } } } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -770,6 +770,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1833, +/**/ 1832, /**/ 1831,