File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1213,7 +1213,15 @@ def height(p):
12131213 def width (p ):
12141214 return int (p ._info ["pane_width" ])
12151215
1216- assert height (main_horizontal_pane ) > height (panes [0 ])
1216+ main_horizontal_pane_height = height (main_horizontal_pane )
1217+ pane_heights = [height (pane ) for pane in panes ]
1218+ # TODO: When libtmux has new pane formatters added, use that to detect top / bottom
1219+ assert all (
1220+ main_horizontal_pane_height != pane_height for pane_height in pane_heights
1221+ ), "The top row should not be the same size as the bottom row (even though it can)"
1222+ assert all (
1223+ pane_heights [0 ] == pane_height for pane_height in pane_heights
1224+ ), "The bottom row should be uniform height"
12171225 assert width (main_horizontal_pane ) > width (panes [0 ])
12181226
12191227 def is_almost_equal (x , y ):
You can’t perform that action at this time.
0 commit comments