neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 41ebe41b62921142bb486e5f30bd2fa9f53f1700
parent c2375efe56b3918f83ee143f48fb7a763fa50289
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sun, 12 Feb 2023 19:02:14 +0800

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:
Msrc/nvim/api/ui.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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));