Skip to content

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

@bfrg

Description

@bfrg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions