diff src/search.c @ 11117:e2258e86d8e1 v8.0.0446

patch 8.0.0446: the ";" command does not work after some characters commit https://github.com/vim/vim/commit/454709baffd3205bf2b7d2519419675a122f2bd2 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 12 16:37:14 2017 +0100 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)
author Christian Brabandt <cb@256bit.org>
date Sun, 12 Mar 2017 16:45:04 +0100
parents 654fc5636b37
children 778c10516955
line wrap: on
line diff
--- a/src/search.c
+++ b/src/search.c
@@ -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;