diff options
author | andmarti1424 <andmarti@gmail.com> | 2018-01-18 08:23:43 -0300 |
---|---|---|
committer | andmarti1424 <andmarti@gmail.com> | 2018-01-18 08:23:43 -0300 |
commit | d724bfda24003ddbb94f6ea5b4407b63b8ab416b (patch) | |
tree | 2ae833578426284c2684c854e696ebfd07ff2b7e /src | |
parent | 72312f8bbd7fdf8e8771f4b674f3bf73b9e339a0 (diff) |
Issue 234
Diffstat (limited to 'src')
-rwxr-xr-x | src/doc | 2 | ||||
-rw-r--r-- | src/input.c | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -72,6 +72,8 @@ Navigation commands: zb Scroll vertically to position the selected cell at the bottom of the screen. Vir Select the smallest range that covers all valid cells. + ESC or c-g Clean stdin buffer, so SC-IM no longer waits for completing a + correct command. Commands for handling cell content: diff --git a/src/input.c b/src/input.c index bc0ab98..51336d0 100644 --- a/src/input.c +++ b/src/input.c @@ -98,8 +98,9 @@ void handle_input(struct block * buffer) { // Read new character from stdin return_value = ui_getch(&wd); d = wd; - if ( d == OKEY_ESC) { + if ( d == OKEY_ESC || d == ctl('g')) { break_waitcmd_loop(buffer); + ui_print_mult_pend(); return; } |