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_misc.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_misc.c')
-rw-r--r-- | Src/Zle/zle_misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/zle_misc.c b/Src/Zle/zle_misc.c index 898b552de..612ac2138 100644 --- a/Src/Zle/zle_misc.c +++ b/Src/Zle/zle_misc.c @@ -756,7 +756,7 @@ bracketedstring(void) while (endesc[endpos]) { if (current + 1 >= psize) pbuf = zrealloc(pbuf, psize *= 2); - if ((next = getbyte(1L, &timeout)) == EOF) + if ((next = getbyte(1L, &timeout, 1)) == EOF) break; if (!endpos || next != endesc[endpos++]) endpos = (next == *endesc); @@ -970,7 +970,7 @@ universalargument(char **args) * * Hence for now this remains byte-by-byte. */ - while ((gotk = getbyte(0L, NULL)) != EOF) { + while ((gotk = getbyte(0L, NULL, 1)) != EOF) { if (gotk == '-' && !digcnt) { minus = -1; digcnt++; |