mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
vt: BS: *only* reset lcf if cursor is beyond right margin: don’t move cursor
This is needed to make reverse auto-wrap work correctly. Without it, we’ll end up moving the cursor left one cell extra.
This commit is contained in:
parent
03cacaba86
commit
377f1b7ad3
1 changed files with 4 additions and 1 deletions
5
vt.c
5
vt.c
|
|
@ -130,7 +130,10 @@ action_execute(struct terminal *term, uint8_t c)
|
|||
|
||||
case '\b':
|
||||
/* backspace */
|
||||
term_cursor_left(term, 1);
|
||||
if (term->grid->cursor.lcf)
|
||||
term->grid->cursor.lcf = false;
|
||||
else
|
||||
term_cursor_left(term, 1);
|
||||
break;
|
||||
|
||||
case '\t': {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue