Cursor moves to commandline when printing message after writing file (perceived as cursor flicker) #25974
Labels
bug-vim
wrong behavior inherited from vim
display
redraw, layout, presentation
messages
UI messages, log messages
performance
issues reporting performance problems
Milestone
Problem
The cursor briefly moves to the commandline when printing the message after writing a file.
In terminal nvim
In terminal nvim, this is perceived as a cursor flicker.
Screen.Recording.2023-11-10.at.12.30.08.PM.mov
In neovide
In neovide with cursor animation enabled, this is perceived as the cursor jumping across the screen and then back.
Screen.Recording.2023-11-10.at.12.32.35.PM.mov
Steps to reproduce
Open neovim:
or
Insert 10,000,000 lines in buffer and save file:
Create mapping to invoke write silently:
Invoke write with mapping:
Notice that cursor goes to commandline to print message
"temp.txt" 10000001L, 80000008B written
Expected behavior
The message should be printed in the commandline without moving the visible cursor there.
Neovim version (nvim -v)
NVIM v0.10.0-dev-1461+g468292dcb-Homebrew
Vim (not Nvim) behaves the same?
yes, vim 9.0.1544 (cursor disappears briefly as well but does not seem to appear in comandline)
Operating system/version
macOS 13.5.1
Terminal name/version
kitty 0.29.0
$TERM environment variable
xterm-kitty
Installation
homebrew
The text was updated successfully, but these errors were encountered: