diff options
author | Quentin Hibon <qh.public@yahoo.com> | 2017-10-06 15:36:09 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2017-10-19 06:11:14 +0200 |
commit | debf0f84e0b9d94739aa5c8c97083254df721eb6 (patch) | |
tree | 66b61ad712162722151b023914b752289cd09047 | |
parent | eeb7038c134dbe623feb1bf7a6c4549e54343e0f (diff) | |
download | calcurse-debf0f84e0b9d94739aa5c8c97083254df721eb6.tar.gz calcurse-debf0f84e0b9d94739aa5c8c97083254df721eb6.zip |
Add CTRL-G readline shortcut to getstring()
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r-- | src/getstring.c | 1 |
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 */ |