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

Pass start_directory to new_session when building a session #829

Merged
merged 2 commits into from
Oct 1, 2022
Merged

Pass start_directory to new_session when building a session #829

merged 2 commits into from
Oct 1, 2022

Conversation

heindsight
Copy link
Contributor

This fixes a bug introduced in 2a4714e76b3a85b3391b05413f36623bcb1493f9 (#809) whereby the start_directory session config was no longer passed to the new_session method when building a session. This resulted in the session working directory is not being set correctly, so new windows/panes created in the session, would not start in the expected directory.

This fixes a bug introduced in 2a4714e76b3a85b3391b05413f36623bcb1493f9
(#809) whereby the `start_directory` session config was no longer passed
to the `new_session` method when building a session. This resulted in
the session working directory is not being set correctly, so new
windows/panes created in the session, would not start in the expected
directory.
@CLAassistant
Copy link

CLAassistant commented Oct 1, 2022

CLA assistant check
All committers have signed the CLA.

@tony tony self-requested a review October 1, 2022 15:08
@codecov
Copy link

codecov bot commented Oct 1, 2022

Codecov Report

Merging #829 (9e36d41) into master (1953ed8) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #829   +/-   ##
=======================================
  Coverage   75.00%   75.00%           
=======================================
  Files          18       18           
  Lines        1396     1396           
  Branches      326      326           
=======================================
  Hits         1047     1047           
  Misses        263      263           
  Partials       86       86           
Impacted Files Coverage Δ
src/tmuxp/workspacebuilder.py 85.57% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@tony
Copy link
Member

tony commented Oct 1, 2022

@heindsight Very good catch.

Would you like to add anything to CHANGES for this? If not I'm fine merging and releasing a patch (v1.15.3)

@heindsight
Copy link
Contributor Author

@tony thanks. I don't think this really needs to be mentioned in CHANGES. I'd be happy for you to mere as is.

Copy link
Member

@tony tony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for the test!

@tony tony merged commit ebffa19 into tmux-python:master Oct 1, 2022
tony added a commit that referenced this pull request Oct 1, 2022
tony added a commit that referenced this pull request Oct 1, 2022
@tony
Copy link
Member

tony commented Oct 1, 2022

@heindsight This is live in 1.15.3

If you try it out, any better?

@heindsight
Copy link
Contributor Author

@tony Yes, that's much better. Thanks 😃

@tony
Copy link
Member

tony commented Oct 1, 2022

@heindsight Excellent!

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.

None yet

3 participants