Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/libtmux/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ def new_window(
self,
window_name: str | None = None,
*,
start_directory: None = None,
start_directory: str | None = None,
attach: bool = False,
window_index: str = "",
window_shell: str | None = None,
Expand Down Expand Up @@ -677,7 +677,7 @@ def new_window(

window_args += ("-P",)

if start_directory:
if start_directory is not None:
# as of 2014-02-08 tmux 1.9-dev doesn't expand ~ in new-window -c.
start_directory = pathlib.Path(start_directory).expanduser()
window_args += (f"-c{start_directory}",)
Expand Down
Loading