mirror of
https://github.com/neovim/neovim.git
synced 2026-01-17 10:38:57 +10: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user