summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-12 16:37:14 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-12 16:37:14 +0100
commit454709baffd3205bf2b7d2519419675a122f2bd2 (patch)
tree4406c7b5349cb29b379cc8e7ec2463d321eb9cd4 /src/search.c
parent2fcf6688bc3a8df2dff9c352d415b89db8b33668 (diff)
downloadvim-git-454709baffd3205bf2b7d2519419675a122f2bd2.tar.gz
patch 8.0.0446: the ";" command does not work after some charactersv8.0.0446
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)
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c
index d23dde2c8..f4a5c6dcd 100644
--- 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;