diff options
author | Peter Stephenson <p.stephenson@samsung.com> | 2018-09-03 10:09:22 +0100 |
---|---|---|
committer | Peter Stephenson <p.stephenson@samsung.com> | 2018-09-03 10:09:22 +0100 |
commit | 3ad2ca330538d38f36e9a3000190517b3f4bfa1b (patch) | |
tree | 21eb1be8d1ecdbb7b90d31c8e92d7e64ae00bfb9 /Src/Zle/zle_keymap.c | |
parent | 014eaf7e810dda8be5eaf97c37c9f86e6e839022 (diff) | |
download | zsh-3ad2ca330538d38f36e9a3000190517b3f4bfa1b.tar.gz zsh-3ad2ca330538d38f36e9a3000190517b3f4bfa1b.tar.xz zsh-3ad2ca330538d38f36e9a3000190517b3f4bfa1b.zip |
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.
Diffstat (limited to 'Src/Zle/zle_keymap.c')
-rw-r--r-- | Src/Zle/zle_keymap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/zle_keymap.c b/Src/Zle/zle_keymap.c index 2e96ac780..a5cf1011b 100644 --- a/Src/Zle/zle_keymap.c +++ b/Src/Zle/zle_keymap.c @@ -1518,7 +1518,7 @@ getrestchar_keybuf(void) * arrive together. If we don't do this the input can * get stuck if an invalid byte sequence arrives. */ - inchar = getbyte(1L, &timeout); + inchar = getbyte(1L, &timeout, 1); /* getbyte deliberately resets lastchar_wide_valid */ lastchar_wide_valid = 1; if (inchar == EOF) { @@ -1673,7 +1673,7 @@ addkeybuf(int c) static int getkeybuf(int w) { - int c = getbyte((long)w, NULL); + int c = getbyte((long)w, NULL, 1); if(c < 0) return EOF; |