aboutsummaryrefslogtreecommitdiff
path: root/vt.c
diff options
context:
space:
mode:
Diffstat (limited to 'vt.c')
-rw-r--r--vt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/vt.c b/vt.c
index 6b6bbd0b..6cd5ead7 100644
--- a/vt.c
+++ b/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': {