mirror of
https://github.com/neovim/neovim.git
synced 2025-12-25 15:48:55 +00:00
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
b43f9ded7e
Co-authored-by: glepnir <glephunter@gmail.com>