Skip to content

With 'nosplitscroll', windows are sometimes unnecessarily scrolled after :colder or :cnewer is executed #11115

@bfrg

Description

@bfrg

Steps to reproduce

Run vim --clean -S test.vim, with

set nosplitscroll
edit foo
call setline(1, range(100))
normal! G
copen
close

Then run :colder, and after the error is displayed, hit Enter.

Result: The window has been scrolled.

Expected behaviour

No scrolling after :colder (or :cnewer) when an error occurs.

Version of Vim

9.0.447

cc: @luukvbaal

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