Add CTRL-G readline shortcut to getstring()

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Quentin Hibon 2017-10-06 15:36:09 +02:00 committed by Lukas Fleischer
parent eeb7038c13
commit debf0f84e0

View File

@ -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 */