summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorandmarti1424 <andmarti@gmail.com>2018-01-18 08:23:43 -0300
committerandmarti1424 <andmarti@gmail.com>2018-01-18 08:23:43 -0300
commitd724bfda24003ddbb94f6ea5b4407b63b8ab416b (patch)
tree2ae833578426284c2684c854e696ebfd07ff2b7e /src
parent72312f8bbd7fdf8e8771f4b674f3bf73b9e339a0 (diff)
Issue 234
Diffstat (limited to 'src')
-rwxr-xr-xsrc/doc2
-rw-r--r--src/input.c3
2 files changed, 4 insertions, 1 deletions
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;
}