Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f11d4f6

Browse files
committedOct 25, 2020
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

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.