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:
zeertzjq 2023-02-12 19:02:14 +08:00
parent c2375efe56
commit 41ebe41b62

View File

@ -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));