Skip to content

Commit

Permalink
Add a colon to the end of the target session when creating windows
Browse files Browse the repository at this point in the history
Otherwise the target might get interpreted wrong resulting in the window not being created.
  • Loading branch information
fmauch committed Jan 28, 2024
1 parent f8b837f commit f2a21af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catmux/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def create(self, first=False):
tmux_wrapper = tmux.TmuxWrapper(server_name=self.server_name)
target_window = ":".join([self.session_name, getattr(self, "name")])
if not first:
tmux_wrapper.tmux_call(["new-window", "-t", self.session_name])
tmux_wrapper.tmux_call(["new-window", "-t", self.session_name + ":"])
tmux_wrapper.tmux_call(
["rename-window", "-t", f"{self.session_name}:$", getattr(self, "name")]
)
Expand Down

0 comments on commit f2a21af

Please sign in to comment.