Steps to reproduce
- Run
vim --clean -c 'set nosplitscroll | call range(100)->setline(1) | normal! Gzz'
- Open the help window in a new tab page with
:tab help.
- Close the help window with
:q.
- Result: the window in the previous tab page has been scrolled (previously cursor was in the center, now it's at the bottom of the window).
cc @luukvbaal
Expected behaviour
No scrolling when closing a tab page.
Version of Vim
9.0.500
Environment
Linux
Logs and stack traces
No response