Skip to content

Commit f11d4f6

Browse files
committed
Improve type checking for percent
It's unlikely a user would ever want to pass 0, but to remain true to what's passed in, allow this.
1 parent 3895963 commit f11d4f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libtmux/window.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def split_window(
454454
else:
455455
tmux_args += ('-h',)
456456

457-
if percent:
457+
if percent is not None:
458458
tmux_args += ('-p %d' % percent,)
459459

460460
tmux_args += ('-P', '-F%s' % ''.join(tmux_formats)) # output

0 commit comments

Comments
 (0)