mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
fix(ui-ext): force cursor update after resize in char-based UI
Neither ui/screen.lua nor Neovim Qt keep cursor position after resizing.
This commit is contained in:
parent
c2375efe56
commit
41ebe41b62
@ -645,6 +645,8 @@ void remote_ui_grid_resize(UI *ui, Integer grid, Integer width, Integer height)
|
||||
Array args = data->call_buf;
|
||||
if (ui->ui_ext[kUILinegrid]) {
|
||||
ADD_C(args, INTEGER_OBJ(grid));
|
||||
} else {
|
||||
data->client_col = -1; // force cursor update
|
||||
}
|
||||
ADD_C(args, INTEGER_OBJ(width));
|
||||
ADD_C(args, INTEGER_OBJ(height));
|
||||
|
Loading…
Reference in New Issue
Block a user