We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56661a6 commit 09de00aCopy full SHA for 09de00a
src/libtmux/session.py
@@ -587,7 +587,7 @@ def new_window(
587
self,
588
window_name: str | None = None,
589
*,
590
- start_directory: None = None,
+ start_directory: str | None = None,
591
attach: bool = False,
592
window_index: str = "",
593
window_shell: str | None = None,
@@ -677,7 +677,7 @@ def new_window(
677
678
window_args += ("-P",)
679
680
- if start_directory:
+ if start_directory is not None:
681
# as of 2014-02-08 tmux 1.9-dev doesn't expand ~ in new-window -c.
682
start_directory = pathlib.Path(start_directory).expanduser()
683
window_args += (f"-c{start_directory}",)
0 commit comments