aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/getstring.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/getstring.c b/src/getstring.c
index 3809299..6dfb470 100644
--- a/src/getstring.c
+++ b/src/getstring.c
@@ -229,11 +229,17 @@ enum getstr getstring(WINDOW * win, char *str, int l, int x, int y)
bell();
}
break;
+ case CTRL('U'): /* delete to beginning of line */
+ while (st.pos) {
+ st.pos--;
+ getstr_del_char(&st);
+ }
+ break;
case CTRL('K'): /* delete to end-of-line */
st.s[st.ci[st.pos].offset] = 0;
st.len = st.pos;
break;
- case CTRL('A'): /* go to begginning of string */
+ case CTRL('A'): /* go to beginning of string */
st.pos = 0;
break;
case CTRL('E'): /* go to end of string */