Skip to content

Assert failure in headless mode when calling screenstring() after printing long message, redrawing, and printing multiline message #20999

@zeertzjq

Description

@zeertzjq

Neovim version (nvim -v)

NVIM v0.9.0-dev-279+gd187c00fa

Vim (not Nvim) behaves the same?

No

Operating system/version

Arch Linux

Terminal name/version

kitty 0.26.5

$TERM environment variable

xterm-kitty

Installation

build from repo

How to reproduce the issue

  1. This is the content of /tmp/tmp.vim:
echo repeat('a', 100)
redraw
echo "\n"
call screenstring(1, 1)
quit
  1. Run nvim --clean --headless -S /tmp/tmp.vim

Expected behavior

No crash

Actual behavior

Assert failure after 1 second
void msg_scroll_flush(void): Assertion `to_scroll >= 0' failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-crashissue reporting a crash or segfaultbug-regressionwrong behavior that was introduced in a previous commit (please bisect)has:bisectedissue has been tracked to a specific commithas:reproissue contains minimal reproducing stepsmessagesUI messages, log messages, progress, errors, warnings, feedbackui

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions