diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-10-02 19:40:30 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-10-02 19:40:30 +0000 |
| commit | 377f1b7ad3176d12ae274ca9f3b26f7b764493c7 (patch) | |
| tree | aee20eade911c2b58f13a0207121e5ff0bf5245e | |
| parent | term: cursor-left: reverse-wrap when cursor is at the left margin (diff) | |
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.
| -rw-r--r-- | vt.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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': { |
