summaryrefslogtreecommitdiffstats
path: root/linenoise
diff options
context:
space:
mode:
Diffstat (limited to 'linenoise')
-rw-r--r--linenoise/linenoise.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linenoise/linenoise.c b/linenoise/linenoise.c
index b94a9a6d..5e45e3f8 100644
--- a/linenoise/linenoise.c
+++ b/linenoise/linenoise.c
@@ -394,11 +394,11 @@ static int complete_line(struct lino_state *ls) {
}
switch(c) {
- case 9: /* tab */
+ case TAB:
i = (i+1) % (lc.len+1);
if (i == lc.len) generate_beep(ls);
break;
- case 27: /* escape */
+ case ESC:
/* Re-show original buffer */
if (i < lc.len) refresh_line(ls);
stop = 1;