aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobody <nobody@example.net>2017-09-25 22:48:15 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2017-10-19 06:11:59 +0200
commit164d6efcb7a17de6f1a90ea907fc8924bb3493e3 (patch)
treedda7df097f806eae401826c7712c602803d02f8d
parentdebf0f84e0b9d94739aa5c8c97083254df721eb6 (diff)
downloadcalcurse-164d6efcb7a17de6f1a90ea907fc8924bb3493e3.tar.gz
calcurse-164d6efcb7a17de6f1a90ea907fc8924bb3493e3.zip
Make delete key act as delete instead of backspace
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r--src/getstring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/getstring.c b/src/getstring.c
index 54f78c1..8352f40 100644
--- a/src/getstring.c
+++ b/src/getstring.c
@@ -195,7 +195,6 @@ enum getstr getstring(WINDOW * win, char *str, int l, int x, int y)
break;
switch (ch) {
case KEY_BACKSPACE: /* delete one character */
- case 330:
case 127:
case CTRL('H'):
if (st.pos > 0) {
@@ -205,6 +204,7 @@ enum getstr getstring(WINDOW * win, char *str, int l, int x, int y)
bell();
}
break;
+ case KEY_DC:
case CTRL('D'): /* delete next character */
if (st.pos < st.len)
getstr_del_char(&st);