diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-05 23:22:55 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-05 23:22:55 -0700 |
commit | a4a89fb9816a5560cc396bcf3c8c5bfc66aae3f2 (patch) | |
tree | 98cc303b4c86e6ff2f21bc6f9bb18baec21848f2 /linenoise | |
parent | 2caaa995b0af3b2dc65c6ae187d24fb92d9798a6 (diff) | |
download | txr-a4a89fb9816a5560cc396bcf3c8c5bfc66aae3f2.tar.gz txr-a4a89fb9816a5560cc396bcf3c8c5bfc66aae3f2.tar.bz2 txr-a4a89fb9816a5560cc396bcf3c8c5bfc66aae3f2.zip |
linenoise: 27 and 9 to ESC and TAB.
* linenoise/linenoise.c (complete_line): Use
TAB and ESC instead of 9 and 27.
Diffstat (limited to 'linenoise')
-rw-r--r-- | linenoise/linenoise.c | 4 |
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; |