1
0
forked from aniani/vim

patch 8.0.0446: the ";" command does not work after some characters

Problem:    The ";" command does not work after characters with a lower byte
            that is NUL.
Solution:   Properly check for not having a previous character. (Hirohito
            Higashi)
This commit is contained in:
Bram Moolenaar
2017-03-12 16:37:14 +01:00
parent 2fcf6688bc
commit 454709baff
5 changed files with 55 additions and 1 deletions

View File

@@ -1643,7 +1643,11 @@ searchc(cmdarg_T *cap, int t_cmd)
}
else /* repeat previous search */
{
if (*lastc == NUL)
if (*lastc == NUL
#ifdef FEAT_MBYTE
&& lastc_bytelen == 1
#endif
)
return FAIL;
if (dir) /* repeat in opposite direction */
dir = -lastcdir;