GithubHelp home page GithubHelp logo

Comments (11)

joshuali925 avatar joshuali925 commented on June 21, 2024 2

tmux-logs.tar.gz

Also if i start tmux on Mac, then ssh and run nvim, tmux also crashes

from neovim.

fallenbeck avatar fallenbeck commented on June 21, 2024 2

There is a fix on the tmux side:
tmux/tmux#3983

from neovim.

zeertzjq avatar zeertzjq commented on June 21, 2024 1

There is another use of DECRQSS in runtime/lua/vim/_defaults.lua

from neovim.

wookayin avatar wookayin commented on June 21, 2024

Can you please attach tmux log if possible?

from neovim.

zeertzjq avatar zeertzjq commented on June 21, 2024

Hmm, according to tmux/tmux#3983 this seems to happen because DECRQSS conflicts with tmux's handling of sixel, while detecting tmux in Docker using environment variables does not work.

from neovim.

joshuali925 avatar joshuali925 commented on June 21, 2024

I can confirm rebuilding tmux from HEAD on master branch fixes it.

On tmux 3.4 (host) setting the TMUX environment variable (in docker) before opening nvim could prevent crashing tmux, but setting TERM=tmux-256color does not work. I also tried to comment out tui_query_extended_underline(tui); but tmux still crashes, so I'm not sure if it's this

bool tmux = terminfo_is_term_family(term, "tmux") || !!os_getenv("TMUX");

neovim/src/nvim/tui/tui.c

Lines 429 to 434 in 27fb629

// Don't use DECRQSS in screen or tmux, as they behave strangely when receiving it.
// Terminal.app also doesn't support DECRQSS.
if (tui->unibi_ext.set_underline_style == -1 && !(screen || tmux || nsterm)) {
// Query the terminal to see if it supports extended underline.
tui_query_extended_underline(tui);
}

from neovim.

GNITOAHC avatar GNITOAHC commented on June 21, 2024

I use iterm2 + tmux version 3.4 on MacOS.
When ssh to a Ubuntu 22.04.4 LTS with nvim v0.10.0 it crash my tmux, too.

from neovim.

splooge avatar splooge commented on June 21, 2024

Similar issue

localhost$ tmux -V
tmux 3.4
localhost$ tmux -vvv
localhost$ ssh remotehost
remotehost$ nvim -v
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.0-beta3
Run "nvim -V1 -v" for more info
remotehost$ nvim --clean
[server exited unexpectedly]

tmux-logs.tar.gz

from neovim.

xvzc avatar xvzc commented on June 21, 2024

Thanks to @fallenbeck, installing tmux 3.5 fixed it for me.

from neovim.

farzadmf avatar farzadmf commented on June 21, 2024

Question: how is this "completed"? Is the solution installing tmux 3.5??

from neovim.

dundargoc avatar dundargoc commented on June 21, 2024

Question: how is this "completed"? Is the solution installing tmux 3.5??

Yeah. Tmux has already made a fix for this so there's no reason for us to keep track if this anymore.

from neovim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.