aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-06-09 07:58:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-06-09 07:58:29 +0000
commited081f5f3c09fa29ad4a62b2ef1bf1c1fe0f7b89 (patch)
tree4314c8d03879ed045312a1908bb65b13353309c7 /csi.c
parentMerge branch 'il-dl-reset-cursor-col' (diff)
parentchangelog: tabs are preserved (diff)
Merge branch 'tabs'
Closes #508
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/csi.c b/csi.c
index 045a5b6c..2d497636 100644
--- a/csi.c
+++ b/csi.c
@@ -1120,7 +1120,10 @@ csi_dispatch(struct terminal *term, uint8_t final)
}
}
xassert(new_col >= term->grid->cursor.point.col);
+
+ bool lcf = term->grid->cursor.lcf;
term_cursor_right(term, new_col - term->grid->cursor.point.col);
+ term->grid->cursor.lcf = lcf;
}
break;
}