Skip to content

Lazygit from neovim inside tmux is slightly different than vanilla lazygit #3829

@shauryagoel

Description

@shauryagoel

Describe the bug
If I open lazygit from neovim which is inside tmux I get different pane sizes than when opening lazygit from terminal inside tmux without neovim or when opening lazygit from neovim without tmux or when opening lazygit from terminal without tmux.
Lazygit from neovim inside tmux-
image

Lazygit inside neovim and without tmux-
image

As you can see, the pane sizes on the left-hand side are different in both cases.

To Reproduce
Steps to reproduce the behaviour:

  1. Open a new tmux session
  2. Open neovim inside it (nvim --clean)
  3. Open terminal inside neovim (:term)
  4. Type lazygit and press enter

For the second screenshot skip step 1 and follow from step 2 onwards.

Expected behaviour
In both cases, the corresponding pane sizes should be the same.

Screenshots
Added above while describing the bug.

Version info:
lazygit version- commit=58d746718056ea7ca802aafdd244d6abeb7255f8, build date=2024-08-09T10:19:46Z, build source=unknown, version=58d74671, os=darwin, arch=arm64, git version=2.44.0
git version- git version 2.44.0
neovim version- v0.10.1
tmux version- tmux 3.3a
OS: MacOS 14.4

Additional context

  1. I have manually built the lazygit using the commit 58d7467.
  2. I get the same result even after disabling any config for tmux and neovim.

If you want to try and debug this issue yourself, you can run lazygit --debug in one terminal panel and lazygit --logs in another to view the logs.
--> This does not show any useful errors

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