Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug where window resizing breaks if a session is launched via twm #17

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

vinnymeller
Copy link
Owner

Addresses the issue with gh-16 where resizing the window breaks everything if your tmux session was attached to via execvp.

I still have no idea why this is happening, but this seems to fix it at least; instead of calling execvp with tmux as the target program, we call it to whatever the user's shell is with -c tmux attach -t <session_name> as the arguments.

Tested this across multiple shells and it seems to work fine.

Addresses the issue with gh-16 where resizing the window breaks
everything if your tmux session was attached to via execvp. I still have
*no* idea why this is happening, but this seems to fix it at least;
instead of calling execvp with tmux as the target program, we call it to
whatever the user's shell is with `-c tmux attach -t <session_name>` as
the arguments. Tested this across multiple shells and it seems to work
fine.
@vinnymeller vinnymeller merged commit 8608431 into master Jan 31, 2024
1 check passed
@vinnymeller vinnymeller deleted the bugfix-broken-resize branch January 31, 2024 05:23
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.

1 participant