summaryrefslogtreecommitdiff
path: root/Src/Zle/zle_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Zle/zle_utils.c')
-rw-r--r--Src/Zle/zle_utils.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c
index ffd94def8..e6f696935 100644
--- a/Src/Zle/zle_utils.c
+++ b/Src/Zle/zle_utils.c
@@ -510,7 +510,7 @@ hstrnstr(char *haystack, int pos, char *needle, int len, int dir, int sens)
mod_export int
getzlequery(int yesno)
{
- int c;
+ ZLE_INT_T c;
#ifdef FIONREAD
int val;
@@ -525,18 +525,18 @@ getzlequery(int yesno)
#endif
/* get a character from the tty and interpret it */
- c = getkey(0);
+ c = getfullchar(0);
if (yesno) {
- if (c == '\t')
- c = 'y';
+ if (c == ZLETAB)
+ c = LETTER_y;
else if (icntrl(c) || c == EOF)
- c = 'n';
+ c = LETTER_n;
else
c = tulower(c);
}
/* echo response and return */
- if (c != '\n')
- putc(c, shout);
+ if (c != ZLENL)
+ putc(c, shout); /* TODO: convert to multibyte */
return c;
}