diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-12 16:37:14 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-12 16:37:14 +0100 |
commit | 454709baffd3205bf2b7d2519419675a122f2bd2 (patch) | |
tree | 4406c7b5349cb29b379cc8e7ec2463d321eb9cd4 /src/search.c | |
parent | 2fcf6688bc3a8df2dff9c352d415b89db8b33668 (diff) | |
download | vim-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.c | 6 |
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; |