]> granicus.if.org Git - vim/commitdiff
patch 8.1.0199: spellbadword() does not check for caps error v8.1.0199
authorBram Moolenaar <Bram@vim.org>
Fri, 20 Jul 2018 18:28:48 +0000 (20:28 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 20 Jul 2018 18:28:48 +0000 (20:28 +0200)
Problem:    spellbadword() does not check for caps error. (Dominique Pelle)
Solution:   Adjust capcol when advancing.

src/evalfunc.c
src/version.c

index 2e06c2063d3f9fcf45dcd379987e1e1dc9e4cf07..bb3257119f248edf80fc6b3477facbfcfa470536 100644 (file)
@@ -11639,6 +11639,7 @@ f_spellbadword(typval_T *argvars UNUSED, typval_T *rettv)
                    break;
                }
                str += len;
+               capcol -= len;
            }
        }
     }
index 691800cfdf2a73c69d6f5ae1a31b13f6b9425d30..f5996d8bd13cabd98abdbe7f6dc8a678fa8f4589 100644 (file)
@@ -789,6 +789,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    199,
 /**/
     198,
 /**/