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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user