summaryrefslogtreecommitdiff
path: root/Src/Zle/zle_hist.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Zle/zle_hist.c')
-rw-r--r--Src/Zle/zle_hist.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c
index 31fa6ace0..af4529489 100644
--- a/Src/Zle/zle_hist.c
+++ b/Src/Zle/zle_hist.c
@@ -1107,7 +1107,10 @@ doisearch(char **args, int dir)
} else if (cmd == Th(z_selfinsert)) {
#ifdef MULTIBYTE_SUPPORT
if (!lastchar_wide_valid)
- getrestchar(lastchar);
+ if (getrestchar(lastchar) == WEOF) {
+ handlefeep(zlenoargs);
+ continue;
+ }
#else
;
#endif
@@ -1303,7 +1306,10 @@ getvisrchstr(void)
} else {
#ifdef MULTIBYTE_SUPPORT
if (!lastchar_wide_valid)
- getrestchar(lastchar);
+ if (getrestchar(lastchar) == WEOF) {
+ handlefeep(zlenoargs);
+ continue;
+ }
#else
;
#endif