Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f7e5788

Browse filesBrowse files
Data5treamtony
authored andcommitted
fix(typings): Fix new_window argument typing in Session
1 parent 14d72bd commit f7e5788
Copy full SHA for f7e5788

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/libtmux/session.py

Copy file name to clipboardExpand all lines: src/libtmux/session.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def new_window(
587587
self,
588588
window_name: str | None = None,
589589
*,
590-
start_directory: None = None,
590+
start_directory: str | None = None,
591591
attach: bool = False,
592592
window_index: str = "",
593593
window_shell: str | None = None,
@@ -677,7 +677,7 @@ def new_window(
677677

678678
window_args += ("-P",)
679679

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.