changeset 14368:e78ce11f310b v8.1.0199

patch 8.1.0199: spellbadword() does not check for caps error commit https://github.com/vim/vim/commit/66ab916935585391b2efaa8e39075e1ef94717b1 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 20 20:28:48 2018 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Fri, 20 Jul 2018 20:30:05 +0200
parents ce0cc90c253e
children 9b568c8ad8cb
files src/evalfunc.c src/version.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -11639,6 +11639,7 @@ f_spellbadword(typval_T *argvars UNUSED,
 		    break;
 		}
 		str += len;
+		capcol -= len;
 	    }
 	}
     }
--- a/src/version.c
+++ b/src/version.c
@@ -790,6 +790,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    199,
+/**/
     198,
 /**/
     197,