Skip to content

Commit a3c0316

Browse files
committed
Session.new_window: Fix start_directory check
1 parent c7cc090 commit a3c0316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libtmux/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ def new_window(
679679
window_args += ("-P",)
680680

681681
# Catch empty string and default (`None`)
682-
if start_directory and isinstance(start_directory, str):
682+
if start_directory:
683683
# as of 2014-02-08 tmux 1.9-dev doesn't expand ~ in new-window -c.
684684
start_directory = pathlib.Path(start_directory).expanduser()
685685
window_args += (f"-c{start_directory}",)

0 commit comments

Comments
 (0)