diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-02-12 19:02:14 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-02-13 08:50:54 +0800 |
commit | 41ebe41b62921142bb486e5f30bd2fa9f53f1700 (patch) | |
tree | f65990494f48136bb9f8fa77de31ea1d8b5c94b7 /src/nvim/api/ui.c | |
parent | c2375efe56b3918f83ee143f48fb7a763fa50289 (diff) | |
download | rneovim-41ebe41b62921142bb486e5f30bd2fa9f53f1700.tar.gz rneovim-41ebe41b62921142bb486e5f30bd2fa9f53f1700.tar.bz2 rneovim-41ebe41b62921142bb486e5f30bd2fa9f53f1700.zip |
fix(ui-ext): force cursor update after resize in char-based UI
Neither ui/screen.lua nor Neovim Qt keep cursor position after resizing.
Diffstat (limited to 'src/nvim/api/ui.c')
-rw-r--r-- | src/nvim/api/ui.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/api/ui.c b/src/nvim/api/ui.c index 3ad625234c..8f5465db77 100644 --- a/src/nvim/api/ui.c +++ b/src/nvim/api/ui.c @@ -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)); |