mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -07:00
tui: Fix cursor motion clear screen bug visible on line #1 in redraws.
The clear_screen capability moves the cursor position. This needs to be accounted for.
This commit is contained in:
parent
d077a161ee
commit
ede4d620de
@ -543,6 +543,7 @@ static void clear_region(UI *ui, int top, int bot, int left, int right)
|
||||
if (bot == ui->height - 1) {
|
||||
if (top == 0) {
|
||||
unibi_out(ui, unibi_clear_screen);
|
||||
ugrid_goto(&data->grid, top, left);
|
||||
} else {
|
||||
cursor_goto(ui, top, 0);
|
||||
unibi_out(ui, unibi_clr_eos);
|
||||
|
Loading…
Reference in New Issue
Block a user