Skip to content

more-prompt pager swallows empty newlines when scrolling up (PageUp / b) #21315

Closed
viai-editor/viai
#26

Description

@gnarendran

Steps to reproduce

  1. Run Vim directly from the terminal with the expression:
    vim --clean '+echo join(range(1, 1000), "\n\n")'
  2. Press f (or Space / PageDown) to scroll down through the message pager. Note that numbers are separated by empty lines as expected.
  3. Press b (or PageUp) to scroll back up.

Actual behavior
When scrolling up (PageUp), all empty line separators vanish from the rendered screen area. If you then scroll down (PageDown) into previously unrendered text, their blank lines appear, but vanish again as soon as you scroll backward over them.

Expected behaviour

The text should retain its exact formatting (including empty newlines) when scrolling back up.

Version of Vim

9.2.967

Environment

Fedora 44
XTerm(411)
xterm-256color
bash

Logs and stack traces

Activity

  1. zeertzjq commented on Sep 15, 2026

    @zeertzjq
    Member

    This seems caused by patch 9.0.0595

  2. akasakariko commented on Oct 4, 2026

    @akasakariko
    Contributor

    I'd like to work on this

  3. added a commit that references this issue on Oct 6, 2026
    bcdd3cb
  4. added a commit that references this issue on Oct 15, 2026
    342ffe6
  5. added 2 commits that reference this issue on Oct 19, 2026
    cb226d6
    d684105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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