csi: IND+RI now clears LCF

This commit is contained in:
Daniel Eklöf 2020-07-14 10:52:15 +02:00
parent 6faa9955ba
commit 7fce1720d6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 3 additions and 0 deletions

View file

@ -100,6 +100,7 @@
Column Flag_).
* `LF` now always clears `LCF`. Previously, it only cleared it when
the cursor was **not** at the bottom of the scrolling region.
* `IND` and `RI` now clears `LCF`.
### Security

2
csi.c
View file

@ -577,6 +577,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
.start = term->grid->cursor.point.row,
.end = term->scroll_region.end},
count);
term->grid->cursor.lcf = false;
break;
}
@ -595,6 +596,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
.start = term->grid->cursor.point.row,
.end = term->scroll_region.end},
count);
term->grid->cursor.lcf = false;
break;
}