From debf0f84e0b9d94739aa5c8c97083254df721eb6 Mon Sep 17 00:00:00 2001 From: Quentin Hibon Date: Fri, 6 Oct 2017 15:36:09 +0200 Subject: Add CTRL-G readline shortcut to getstring() Signed-off-by: Lukas Fleischer --- src/getstring.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 */ -- cgit v1.2.3-70-g09d2