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

netrw, clipboard=unnamedplus and wl-copy cause high CPU load when netrw banner is turned off #76

Open
saccarosium opened this issue Jan 18, 2025 · 0 comments
Labels
bug issues reporting wrong behavior vim vim specific issues

Comments

@saccarosium
Copy link
Owner

Problem

I noticed that when i turn off the banner in netrw (via config or via I) my cursor starts to flicker and the CPU load goes up noticeably. While debugging I found out that when this happens, there's also a rapid deletion and creation of /tmp/wl-copy-buffer-xxxx directories happening at the same time.

Curiously, this only happens when the netrw banner is turned off.

Steps to reproduce

cd /tmp
nvim --clean

:set clipboard=unnamedplus
:Explore
<I>   # press 'I' to disable the banner in netrw

Observe how the curser starts to flicker and the CPU usage goes up considerably. When in /tmp, you should see a directory called wl-copy-buffer-xxxx being rapidly created and deleted with a new suffix -- probably causing this issue.

Expected behavior

CPU load should not increase when the banner is turned off, and the cursor should not flicker as well.

Neovim version (nvim -v)

v0.7.2, confirmed also with latest nighly

Vim (not Nvim) behaves the same?

yes, 9.0

Operating system/version

Debian

Terminal name/version

gnome-terminal

$TERM environment variable

xterm-256color

Installation

apt

original issue: neovim/neovim#23650

@saccarosium saccarosium added bug issues reporting wrong behavior vim vim specific issues labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues reporting wrong behavior vim vim specific issues
Projects
None yet
Development

No branches or pull requests

1 participant