From d724bfda24003ddbb94f6ea5b4407b63b8ab416b Mon Sep 17 00:00:00 2001 From: andmarti1424 Date: Thu, 18 Jan 2018 08:23:43 -0300 Subject: Issue 234 --- src/doc | 2 ++ src/input.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/doc b/src/doc index 5c03e5a..1c79a2c 100755 --- a/src/doc +++ b/src/doc @@ -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; } -- cgit v1.2.3