Skip to content

Screen rendering issues with neovim inside tmux on wsltty 3.8.0.3 #369

@yamam

Description

@yamam

Environment

Windows 11 Pro 23H2 (22631.5768)
WSL2 (also reproducible on WSL1)
WSL 2.5.10.0
Ubuntu 24.04.3
tmux 3.4
Neovim v0.9.5
conhost.exe 1044480 Jun 16 16:39

Reproduction steps

$ sudo apt update
$ sudo apt install neovim
$ sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

Create the following ~/.config/nvim/init.vim file:

call plug#begin()
Plug 'nvim-lualine/lualine.nvim'
Plug 'nvim-tree/nvim-web-devicons'
call plug#end()

lua << END
require('lualine').setup()
END

Start tmux and open Neovim:

$ tmux
$ nvim

Ignore the following error message:

E5108: Error executing lua [string ":lua"]:1: module 'lualine' not found:

Install plugins and exit.

:PlugInstall<Enter>
:qa<Enter>

Then reopen Neovim and open help.

$ nvim
:h<Enter>

The screen will become distorted as shown below.
Image

However, if you run Neovim without tmux or add WSLbridge=2 to the wsltty config, the screen does not get distorted.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions