Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With 'nosplitscroll' the last focused window is scrolled when closing a tab page #11159

Closed
bfrg opened this issue Sep 18, 2022 · 1 comment
Closed
Labels

Comments

@bfrg
Copy link
Contributor

bfrg commented Sep 18, 2022

Steps to reproduce

  1. Run vim --clean -c 'set nosplitscroll | call range(100)->setline(1) | normal! Gzz'
  2. Open the help window in a new tab page with :tab help.
  3. Close the help window with :q.
  4. 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

@bfrg bfrg added the bug label Sep 18, 2022
luukvbaal added a commit to luukvbaal/vim that referenced this issue Sep 18, 2022
Problem:	Text is scrolled for 'nosplitscroll' when closing
tab page.
Solution:	Skip win_fix_scroll() call when closing tab page
(Fix vim#11159).
luukvbaal added a commit to luukvbaal/vim that referenced this issue Sep 18, 2022
Problem:	Text is scrolled for 'nosplitscroll' when changing
tab page.
Solution:	Skip win_fix_scroll() call when changing tab page
(Fix vim#11159).
@bfrg
Copy link
Contributor Author

bfrg commented Sep 19, 2022

Fixed by faf1d41.

@bfrg bfrg closed this as completed Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant