summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuentin Hibon <qh.public@yahoo.com>2017-10-06 15:36:09 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2017-10-19 06:11:14 +0200
commitdebf0f84e0b9d94739aa5c8c97083254df721eb6 (patch)
tree66b61ad712162722151b023914b752289cd09047 /src
parenteeb7038c134dbe623feb1bf7a6c4549e54343e0f (diff)
downloadcalcurse-debf0f84e0b9d94739aa5c8c97083254df721eb6.tar.gz
calcurse-debf0f84e0b9d94739aa5c8c97083254df721eb6.zip
Add CTRL-G readline shortcut to getstring()
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src')
-rw-r--r--src/getstring.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/getstring.c b/src/getstring.c
index 6dfb470..54f78c1 100644
--- a/src/getstring.c
+++ b/src/getstring.c
@@ -256,6 +256,7 @@ enum getstr getstring(WINDOW * win, char *str, int l, int x, int y)
st.pos++;
break;
case ESCAPE: /* cancel editing */
+ case CTRL('G'):
return GETSTRING_ESC;
break;
default: /* insert one character */