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)
diff --git a/src/search.c b/src/search.c
index d23dde2..f4a5c6d 100644
--- a/src/search.c
+++ b/src/search.c
@@ -1643,7 +1643,11 @@
}
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;