#1035736 neovim: Turning off the banner causes the cursor to flicker permanently and CPU usage goes up

Package:
neovim
Source:
neovim
Description:
heavily refactored vim fork
Submitter:
Bastian Venthur
Date:
2023-07-06 14:24:03 UTC
Severity:
normal
#1035736#5
Date:
2023-05-08 13:13:41 UTC
From:
To:
Dear Maintainer,

Turning off the netrw's banner (netrw-I), via g:netrw_banner and or by pressing
"I" in the Explorer causes the cursor to flicker permanently and the CPU usage
goes up to 50% or so. In the case of using the g:netrw_banner option, you have
to open the Explorer first to make the effect visible.

I don't use any plugins and my configuration is quite minimal. The effect does
not happen in plain old vim.


Cheers,

Bastian

#1035736#10
Date:
2023-06-18 02:04:20 UTC
From:
To:
I can't reproduce this.  “nvim --clean” followed by “:e .” and pressing
I doesn't result in flickering or high CPU usage.

If this “nvim --clean” works fine, then I'd suggest looking through your
config and “:scriptnames” to see what may be affecting it.

Cheers,

#1035736#15
Date:
2023-06-18 09:38:58 UTC
From:
To:
I think it is related to wl-copy, which is installed and used on all my
machines where this error occurs. More specifically, when browsing /tmp
and turning off the banner, I can actually see folders like
`wl-copy-buffer-XXXXX` appearing and disappearing in very quick
succession. I suspect this is related to that buggy behavior.

I've issued a bugreport upstream:

https://github.com/neovim/neovim/issues/23650

with steps to reproduce:

cd /tmp
nvim --clean

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

can you try to reproduce it with these steps? This behavior is BTW also
reproducible in vim.


Cheers,

Bastian

Am 18.06.23 um 04:04 schrieb James McCoy:

#1035736#22
Date:
2023-07-06 14:21:08 UTC
From:
To:
Ah, that makes sense.  Netrw fiddles with the clipboard, which is
probably causing wl-copy to update files in /tmp, and therefore netrw
tries to refresh its display.

I thought neovim had patched out most/all of netrw's clipboard stuff,
but maybe some got missed.

As a workaround, it may be worth trying to setup autocommands to
update 'clipboard' such that you don't have unnamedplus in use when
you're in a netrw buffer.

Cheers,