Merge branch 'il-dl-reset-cursor-col'

This commit is contained in:
Daniel Eklöf 2021-06-08 19:52:40 +02:00
commit e77b7d7111
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 3 additions and 0 deletions

View file

@ -160,6 +160,7 @@
alternate screen.
* Restore `SIGHUP` in spawned processes.
* Text reflow performance (https://codeberg.org/dnkl/foot/issues/504).
* IL+DL (`CSI Ps L` + `CSI Ps M`) now moves the cursor to column 0.
### Security

2
csi.c
View file

@ -1001,6 +1001,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
.end = term->scroll_region.end},
count);
term->grid->cursor.lcf = false;
term->grid->cursor.point.col = 0;
break;
}
@ -1020,6 +1021,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
.end = term->scroll_region.end},
count);
term->grid->cursor.lcf = false;
term->grid->cursor.point.col = 0;
break;
}