diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-12-21 10:41:53 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-21 10:41:53 +0800 |
| commit | f89558848b119048a2656fbf127f4cd85129330b (patch) | |
| tree | 85184dda377ba65e2ea6afe0b3b9e93b2ab243e7 /runtime/lua/vim/_core/stringbuffer.lua | |
| parent | 69167006a4d3e5cfe77b9bc6e58be5dc4030fa39 (diff) | |
vim-patch:9.1.2001: cursor may end up in wrong window after :botright copen (#37056)
Problem: After :botright copen and closing the quikfix window, the
cursor ends up in the wrong window. The problem is fr_child
always points to the first (leftmost for FR_ROW, topmost for
FR_COL) child frame. When do :vsplit, the new window is
created on the left, and frame_insert() updates the parent's
fr_child to point to this new left window.
Solution: Create a snapshot before open the quickfix window and restore
it when close it (glepnir).
closes: vim/vim#18961
https://github.com/vim/vim/commit/b43f9ded7e98261e3e662a8e919f54e7399b0316
Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'runtime/lua/vim/_core/stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions
