Skip to content

E315 ml_get:invalid_lnum: [number] in terminal buffer [again^2] #17099

@user202729

Description

@user202729

Steps to reproduce

  • vim --clean -c ':set mouse=a ruler termwinscroll=100000' -c ':term'
  • in the top terminal run seq 99900
  • <c-w>N to goto terminal normal mode (ensure line number displayed in the ruler is >99900), then i
  • sleep 3;seq 800, then click to the other window (blank buffer) before the sleep is done
  • ZZ to quit that buffer. This will trigger resizing the terminal and E315.

Expected behaviour

no error happened

Version of Vim

9.1.1071

Side note: the previous issue #16024 was fixed in 9.1.1062. Indeed the instruction in that issue does not reproduce this issue.


Another variant that reproduces the issue is the following:

  • vim --clean -c ':set mouse=a ruler termwinscroll=100000' -c ':new' -c ':term'
  • in the top terminal run seq 99900
  • <c-w>N to goto terminal normal mode (ensure line number displayed in the ruler is >99900), then i
  • sleep 3;seq 800, then click to the bottommost window (blank buffer) before the sleep is done
  • use the mouse to drag the horizontal splitter between the center window and the bottommost window upward in such a way that it pushes the other horizontal splitter upward, causing the terminal to be resized.

Environment

Linux, xterm

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