Skip to content

LazyGit crashes, when opened in a TMUX-Pane with wrong default-terminal #4584

@Rocco-Gossmann

Description

@Rocco-Gossmann

Describe the bug
I've had an spelling mistake in my TMUX-config.

-set -g default-terminal tmux-256colop
should be
-set -g default-terminal tmux-256color

For some reason, the spelling mistake prevented Lazygit from starting, when opened in a new Pane or Window.

tmux split-pane 'lazygit || bash'

Image

Lazygit is the only TUI application that crashed, because of this.

To Reproduce

  1. Install tmux and lazygit.
  2. Create a .tmux.conf file in your $HOME directory.
  3. Open the .tmux.conf file and write -set -g default-terminal tmux-256colop.
  4. Save and exit the file.
  5. Run the tmux command.
  6. Now, from within TMUX try to open lazygit via the following command.
tmux split-pane 'lazygit || bash'

Expected behavior
To not crash.

Version info:
Lazygit - Version

commit=, build date=, build source=Homebrew, version=0.50.0, os=darwin, arch=arm64, git version=2.39.5 (Apple Git-154)

Git - Version:

git version 2.39.5 (Apple Git-154)

TMUX - Version:

tmux 3.5a

Additional context
Setting the default-terminal to tmux-256color fixes the issue, but as said above, Lazygit is the only application, i've encountered, that creashes because of that spelling mistake.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions