diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-10-15 01:39:30 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-10-15 01:39:30 +0000 |
commit | cbd3b1bc9b51d38c98fd02df8c489b7bc9dab728 (patch) | |
tree | 8194ffbe43f530f331231b1fedb446257cb33744 /input.c | |
parent | 04db3c62114c3cc6a822e9045fe989d26d374016 (diff) | |
download | rtmux-cbd3b1bc9b51d38c98fd02df8c489b7bc9dab728.tar.gz rtmux-cbd3b1bc9b51d38c98fd02df8c489b7bc9dab728.tar.bz2 rtmux-cbd3b1bc9b51d38c98fd02df8c489b7bc9dab728.zip |
Sync OpenBSD patchset 400:
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: input.c,v 1.95 2009-08-21 21:07:20 tcunha Exp $ */ +/* $Id: input.c,v 1.96 2009-10-15 01:39:30 tcunha 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. */ |