Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor moves to commandline when printing message after writing file (perceived as cursor flicker) #25974

Open
Asheq opened this issue Nov 10, 2023 · 2 comments · May be fixed by #29447
Open
Labels
bug-vim wrong behavior inherited from vim display redraw, layout, presentation messages UI messages, log messages performance issues reporting performance problems
Milestone

Comments

@Asheq
Copy link

Asheq commented Nov 10, 2023

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:

nvim --clean

or

neovide -- --clean

Insert 10,000,000 lines in buffer and save file:

iabcdefg<Esc>
yy10000000p
:write temp.txt

Create mapping to invoke write silently:

:nnoremap <silent> w :write<CR>

Invoke write with mapping:

w

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

@Asheq Asheq added the bug issues reporting wrong behavior label Nov 10, 2023
@zeertzjq zeertzjq closed this as not planned Won't fix, can't repro, duplicate, stale Nov 10, 2023
@zeertzjq zeertzjq added closed:wontfix current behavior is by design, and change is not desired and removed bug issues reporting wrong behavior labels Nov 10, 2023
@zeertzjq zeertzjq reopened this Nov 10, 2023
@zeertzjq zeertzjq added bug-vim wrong behavior inherited from vim messages UI messages, log messages bug issues reporting wrong behavior and removed closed:wontfix current behavior is by design, and change is not desired bug-vim wrong behavior inherited from vim bug issues reporting wrong behavior labels Nov 10, 2023
@zeertzjq
Copy link
Member

Cursor moves to command line in GVim as well.

@Shougo
Copy link
Contributor

Shougo commented Jun 22, 2024

yes, vim 9.0.1544 (cursor disappears briefly as well but does not seem to appear in comandline)

Because Vim has same feature, but Vim implements cursor hide feature internally.
(NOTE: neovim has not)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-vim wrong behavior inherited from vim display redraw, layout, presentation messages UI messages, log messages performance issues reporting performance problems
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants