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

Corrupted/lost text when scrolling in vertically split neovim window using wezterm with wezterm TERM enviornment variable #3412

Open
CarbonChauvinist opened this issue Jun 10, 2024 · 2 comments

Comments

@CarbonChauvinist
Copy link

CarbonChauvinist commented Jun 10, 2024

1. Graphical issue inside a terminal pane (eg. something does not look as it should)

Please attach the files that were created in /tmp/zellij-1000/zellij-log/ to the extent you are comfortable with.

zellij-12.log
zellij.log

Basic information

zellij --version: zellij 0.41.0

stty size: 32 145

uname -av: Linux lap 6.9.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 31 May 2024 15:14:45 +0000 x86_64 GNU/Linux

Further information

After further testing using the terminals I use this only occurs with Wezterm when run with wezterm TERM enviornment variable. This may be a Wezterm issue?

Wezterm version: wezterm 20240203-110809-5046fc22

The terminals I tested where the issue did not present itself: (terminal/TERM)

  • Foot with foot-extra TERM env var
  • Sakura with xterm-256color TERM env var
  • Kitty with xterm-kitty env var
  • Wezterm with xterm-256color TERM env var

Verified this issue is present on the latest build of zellij (using zellij-git package from aur). Currently using the development version of neovim (NVIM v0.11.0-dev-199+g4881211097).

When opening neovim and creating a vertical split on any file within neovim, scroll down in one window within neovim and observe that the other split window begins to scroll as well and then eventually becomes garbled and loses text. One can switch back and forth between windows and scroll up and down and observe the same behavior on the opposite window from the one currently being scrolled.

To reproduce:

  1. run wezterm with term set to wezterm in config
  2. run zellij with default settings.
  3. run development version of neovim also in a clean state with no plugins loaded (i.e. nvim --clean -u NONE -i NONE)
  4. Open any file
  5. create a vertical split
  6. Scroll down in the current window and observe the reported issue in the neighboring window within neovim

Attached a short screen capture of the behavior for reference.

Also note, in Wezterm with wezterm TERM env this issue does not present itself when running latest version of vim available in the standard Arch repos, nor does it present itself when running neovim without zellij.

May be related to issue #263

edit: uploaded new video file as original may have been corrupted somehow

zellij_neovim_vertical_split_scroll_issues.mp4
@mike-lloyd03
Copy link
Contributor

mike-lloyd03 commented Jun 15, 2024

I'm having this problem as well and it only happens inside Zellij and nvim. However, when downgrading to 0.40.0, it's still happening.

I think this relates to nvim 0.10.0. Downgrading to nvim 0.9.5 and Zellij 0.40.0 fixes the problem for me.

nvim 0.10.0 and Zellij 0.40.1: visual artifacts confirmed
nvim 0.9.5 and Zellij 0.40.1: visual artifacts confirmed
nvim 0.10.0 and Zellij 0.40.0: visual artifacts confirmed
nvim 0.9.5 and Zellij 0.40.0: no visual artifacts

@mike-lloyd03
Copy link
Contributor

I take it back. This appears to be happening in nvim 0.9.5 and Zellij 0.40.0. I'm noticing it in Wezterm and Kitty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants