summaryrefslogtreecommitdiffstats
path: root/input.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-10-12 16:59:55 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-10-12 16:59:55 +0000
commit8608c6970d67d5dec37400bcb4fb6a0c46efc165 (patch)
treee15779553b82c47035ef95e338eff92cee5b3ad1 /input.c
parent693b3d03e66e5ab2f4c4e31b7d5d2c1629afbd8c (diff)
When backspace is received at the beginning of a line and the previous line was
wrapped, move the cursor back up to the end of the previous line. Another one of the forgotten persons requested this quite a while ago (I need to start noting names on todo items...) when it was quite hard to implement. Now it is easy and I don't see it can do any harm, so hey presto...
Diffstat (limited to 'input.c')
-rw-r--r--input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input.c b/input.c
index ba3d9223..d8737888 100644
--- a/input.c
+++ b/input.c
@@ -646,7 +646,7 @@ input_handle_c0_control(u_char ch, struct input_ctx *ictx)
ictx->wp->window->flags |= WINDOW_BELL;
break;
case '\010': /* BS */
- screen_write_cursorleft(&ictx->ctx, 1);
+ screen_write_backspace(&ictx->ctx);
break;
case '\011': /* TAB */
/* Don't tab beyond the end of the line. */