Skip to content

Conversation

andreykaipov
Copy link
Contributor

This fixes a small bug I've experienced from the feature I added in #22.

When using the tpipeline_usepane option, if someone switches tmux panes quickly after starting vim, namely before tmux select-pane -T ... can execute, it'll change the pane title of the current pane we're on. To prevent this from happening, we target the original pane by using $TMUX_PANE. This variable should exist in every tmux session, but if for some reason it's not present, tmux falls back to the current pane.

When using the tpipeline_usepane option, if someone switches tmux panes
quickly after starting vim, namely before `tmux select-pane -T ...` can
execute, it'll change the pane title of the current pane we're on. To
prevent this from happening, we target the original pane by using
$TMUX_PANE. This variable should exist in every tmux session, but if for
some reason it's not present, tmux falls back to the current pane.
@vimpostor
Copy link
Owner

LGTM, thanks!

@vimpostor vimpostor merged commit bc6dfc1 into vimpostor:master Oct 13, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants