diff options
author | Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.com> | 2017-05-23 16:55:22 +0100 |
---|---|---|
committer | Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.com> | 2017-06-03 18:53:27 +0100 |
commit | ede4d620def191af984befecd0386e8cc92ba740 (patch) | |
tree | ccfab658c3a513cde2c7b1d6e12e3b4c3d2907d2 /src | |
parent | d077a161eea19e50ecd4a757004071e2329166e0 (diff) | |
download | rneovim-ede4d620def191af984befecd0386e8cc92ba740.tar.gz rneovim-ede4d620def191af984befecd0386e8cc92ba740.tar.bz2 rneovim-ede4d620def191af984befecd0386e8cc92ba740.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/tui/tui.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 0146d7d65d..650b1b0fa2 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -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); |