mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-13 15:37:27 +02:00
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...
This commit is contained in:
2
input.c
2
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. */
|
||||
|
Reference in New Issue
Block a user