From 3ad2ca330538d38f36e9a3000190517b3f4bfa1b Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 3 Sep 2018 10:09:22 +0100 Subject: Don't handle ZLE functions for single key. For read -k and read -q where we use ZLE, we just want a single key and not full ZLE processing. So don't handle timed ZLE functions when preforming the read. --- Src/Zle/zle_vi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Zle/zle_vi.c') diff --git a/Src/Zle/zle_vi.c b/Src/Zle/zle_vi.c index e0923db3e..a5ff9200c 100644 --- a/Src/Zle/zle_vi.c +++ b/Src/Zle/zle_vi.c @@ -131,7 +131,7 @@ vigetkey(void) char m[3], *str; Thingy cmd; - if (getbyte(0L, NULL) == EOF) + if (getbyte(0L, NULL, 1) == EOF) return ZLEEOF; m[0] = lastchar; -- cgit 1.4.1