aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-11-24 16:05:27 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-11-24 18:18:20 +0000
commit0fc8b65a2b77a5c4dd066e4d49be470ee1d1f70a (patch)
treebb2ad95029bc4938d8f63a17f92574cdb2e40007 /csi.c
parentMerge branch 'line-height-adjust' (diff)
selection: selection_on_rows(): typo: row_start -> row_end
This fixes an issue where selections in the scroll margins were not detected correctly. This meant they weren’t canceled as they should have been, which in turn caused a visual glitch where text appeared to be selected, but were in fact not.
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/csi.c b/csi.c
index 2eacaaa9..e77ae971 100644
--- a/csi.c
+++ b/csi.c
@@ -933,7 +933,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
break;
}
- case 'L': {
+ case 'L': { /* IL */
if (term->grid->cursor.point.row < term->scroll_region.start ||
term->grid->cursor.point.row >= term->scroll_region.end)
break;
@@ -953,7 +953,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
break;
}
- case 'M': {
+ case 'M': { /* DL */
if (term->grid->cursor.point.row < term->scroll_region.start ||
term->grid->cursor.point.row >= term->scroll_region.end)
break;