diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-10-02 13:48:52 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2018-10-06 11:36:08 +0200 |
commit | 1bf83ea8e1314dff43f78bb41835537afda9cbaf (patch) | |
tree | 82dab3bb2174bd2a4f3334a4bd9f557d0a3409c1 | |
parent | cc305213d78e282d9e8a43106491d033e990ccdc (diff) | |
download | rneovim-1bf83ea8e1314dff43f78bb41835537afda9cbaf.tar.gz rneovim-1bf83ea8e1314dff43f78bb41835537afda9cbaf.tar.bz2 rneovim-1bf83ea8e1314dff43f78bb41835537afda9cbaf.zip |
TUI: delete "first-row" workaround after resize
This was caused by cursor position being invalid right
after tui_grid_resize, which is now fixed
-rw-r--r-- | src/nvim/tui/tui.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index bc85b43401..dd22f00de0 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -88,7 +88,6 @@ typedef struct { bool cont_received; UGrid grid; kvec_t(Rect) invalid_regions; - bool did_resize; int row, col; int out_fd; bool scroll_region_is_full_screen; @@ -778,14 +777,6 @@ static void clear_region(UI *ui, int top, int bot, int left, int right, cursor_goto(ui, row, col); print_cell(ui, cell); }); - - if (data->did_resize && top == 0) { - // TODO(bfredl): the first line of the screen doesn't gets properly - // cleared after resize by the loop above, so redraw the final state - // after the next flush. - invalidate(ui, 0, bot, left, right); - data->did_resize = false; - } } } @@ -846,7 +837,6 @@ static void tui_grid_resize(UI *ui, Integer g, Integer width, Integer height) TUIData *data = ui->data; UGrid *grid = &data->grid; ugrid_resize(grid, (int)width, (int)height); - data->did_resize = true; // resize might not always be followed by a clear before flush // so clip the invalid region |