diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-27 22:59:05 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-27 22:59:05 -0700 |
commit | ea3f3ce459932a4e05cf51fe353acf7e90f36bae (patch) | |
tree | c728e27cc2358d96a332733e3773aa98ab939cb1 /linenoise/linenoise.c | |
parent | 35396ddf01daef0d3dea12f2ed960d9693d58eed (diff) | |
download | txr-ea3f3ce459932a4e05cf51fe353acf7e90f36bae.tar.gz txr-ea3f3ce459932a4e05cf51fe353acf7e90f36bae.tar.bz2 txr-ea3f3ce459932a4e05cf51fe353acf7e90f36bae.zip |
linenoise: backspace also causes parenthesis jump.
* linenoise/linenoise.c (edit): Do paren_jump after
backspace
* txr.1: Documented.
Diffstat (limited to 'linenoise/linenoise.c')
-rw-r--r-- | linenoise/linenoise.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linenoise/linenoise.c b/linenoise/linenoise.c index 57797178..cafa7e0a 100644 --- a/linenoise/linenoise.c +++ b/linenoise/linenoise.c @@ -1848,6 +1848,7 @@ static int edit(lino_t *l, const char *prompt) case BACKSPACE: /* backspace */ case CTL('H'): edit_backspace(l); + paren_jump(l); break; case CTL('D'): /* remove char at right of cursor, or if the line is empty, act as end-of-file. */ |