-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Plugin redraws screen when leaving nvim focus in tmux marking the window as having new activity #15
Comments
You're right, it should only redraw on |
Let me know if that fixes the issue 👍 |
@sitiom Hey thanks for looking in to this so quickly! I updated the plugin to the latest version (main branch) but unfortunately the behavior is the same as in the video above :( |
That's weird. At this point, it should only redraw on I don't use tmux, so help would be pretty much appreciated. |
Yes this plugin also have the exact same behaviour as in the original video above :)
(I recommend it, a true life-safer ;)) |
Hmm, then I'm not sure what I can do. It is the plugin's behavior to set the line numbering to absolute when focus is lost, which would do a redraw. I don't know if there's a way to check for this specific use case. You might want to open an issue on the other repo as well and see if they have a bright idea. |
I'm using this plugin with tmux. Both them work well on my side. My system: |
the issue seems to be with nvim-numbertoggle/plugin/numbertoggle.lua Line 19 in 9ab95e6
Is redrawing necessary? |
Hey,
this is a cool plugin, it's useful! However I've needed to disable it unfortunately as it does not play well with tmux. When switching to another window in tmux, it seems like the window just left where nvim is, that this plugin redraws the screen. This causes tmux to alert that something has changed (new output) in the window that was just left, and also marking it as having new activity in the window list.
See the attached video for a demonstration.
Screen.Recording.2022-12-15.at.13.52.33.mov
The expected behavior, which is the case when this plugin is not used in nvim, is that there is no nvim activity when leaving the window, thus no false activity notifications.
Maybe nvim-numbertoggle redraws the screen all the time?
My system:
nvim:
0.8.1
OS: macOS
12.6
nvim-numbertoggle: latest version
The text was updated successfully, but these errors were encountered: