8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14d72bd commit f7e5788Copy full SHA for f7e5788
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