diff options
author | 2009-10-12 16:59:55 +0000 | |
---|---|---|
committer | 2009-10-12 16:59:55 +0000 | |
commit | 6d20045fd9a514e160ac3c93eab6433886bb0596 (patch) | |
tree | 810a9bcdf55f8706a69b977e006f63eb6d3646ab /usr.bin/tmux/input.c | |
parent | Don't run through the column unchanged case if the row was unchanged but there (diff) | |
download | wireguard-openbsd-6d20045fd9a514e160ac3c93eab6433886bb0596.tar.xz wireguard-openbsd-6d20045fd9a514e160ac3c93eab6433886bb0596.zip |
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 'usr.bin/tmux/input.c')
-rw-r--r-- | usr.bin/tmux/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index 1ce61c7704f..b34cb6554eb 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.15 2009/08/20 10:48:25 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.16 2009/10/12 16:59:55 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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. */ |