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 130dc36 commit 50164f5Copy full SHA for 50164f5
src/libtmux/session.py
@@ -250,11 +250,8 @@ def new_window(
250
window_args += (
251
'-F"%s"' % formats.FORMAT_SEPARATOR.join(tmux_formats),
252
) # output
253
- if window_name:
254
- window_args += ("-n%s" % window_name,)
255
-
256
- if window_name == '':
257
- window_args += ('-n', '')
+ if window_name is not None and isinstance(window_name, str):
+ window_args += ("-n", window_name)
258
259
260
# empty string for window_index will use the first one available
0 commit comments