Skip to content

Commit 5cf290a

Browse files
committed
!squash doctests
1 parent 24d1935 commit 5cf290a

File tree

1 file changed

+35
-38
lines changed

1 file changed

+35
-38
lines changed

src/libtmux/pane.py

+35-38
Original file line numberDiff line numberDiff line change
@@ -527,59 +527,56 @@ def split(
527527
528528
Examples
529529
--------
530-
>>> pane
531-
Pane(%1 Window(@1 1:..., Session($1 ...)))
530+
>>> (pane.at_left, pane.at_right,
531+
... pane.at_top, pane.at_bottom)
532+
(True, True,
533+
True, True)
532534
533535
>>> new_pane = pane.split()
534536
535-
>>> new_pane
536-
Pane(%2 Window(@1 1:..., Session($1 ...)))
537-
538-
>>> new_pane.at_right
539-
True
540-
541-
>>> new_pane.at_left
542-
True
543-
544-
>>> new_pane.at_top
545-
False
546-
547-
>>> new_pane.at_bottom
548-
True
537+
>>> (new_pane.at_left, new_pane.at_right,
538+
... new_pane.at_top, new_pane.at_bottom)
539+
(True, True,
540+
False, True)
549541
550542
>>> right_pane = pane.split(direction=PaneDirection.Right)
551543
552-
>>> right_pane
553-
Pane(%3 Window(@1 1:..., Session($1 ...)))
554-
555-
>>> right_pane.at_right
556-
True
544+
>>> (right_pane.at_left, right_pane.at_right,
545+
... right_pane.at_top, right_pane.at_bottom)
546+
(False, True,
547+
True, False)
557548
558-
>>> right_pane.at_left
559-
False
549+
>>> left_pane = pane.split(direction=PaneDirection.Left)
560550
561-
>>> right_pane.at_top
562-
True
551+
>>> (left_pane.at_left, left_pane.at_right,
552+
... left_pane.at_top, left_pane.at_bottom)
553+
(True, False,
554+
True, False)
563555
564-
>>> right_pane.at_bottom
565-
False
556+
>>> top_pane = pane.split(direction=PaneDirection.Above)
566557
567-
>>> left_pane = pane.split(direction=PaneDirection.Left)
558+
>>> (top_pane.at_left, top_pane.at_right,
559+
... top_pane.at_top, top_pane.at_bottom)
560+
(False, False,
561+
True, False)
568562
569-
>>> left_pane
570-
Pane(%4 Window(@1 1:..., Session($1 ...)))
563+
>>> pane = session.new_window().active_pane
571564
572-
>>> left_pane.at_right
573-
False
565+
>>> top_pane = pane.split(direction=PaneDirection.Above, full_window_split=True)
574566
575-
>>> left_pane.at_left
576-
True
567+
>>> (top_pane.at_left, top_pane.at_right,
568+
... top_pane.at_top, top_pane.at_bottom)
569+
(True, True,
570+
True, False)
577571
578-
>>> left_pane.at_top
579-
True
572+
>>> bottom_pane = pane.split(
573+
... direction=PaneDirection.Below,
574+
... full_window_split=True)
580575
581-
>>> left_pane.at_bottom
582-
False
576+
>>> (bottom_pane.at_left, bottom_pane.at_right,
577+
... bottom_pane.at_top, bottom_pane.at_bottom)
578+
(True, True,
579+
False, True)
583580
"""
584581
tmux_formats = ["#{pane_id}" + FORMAT_SEPARATOR]
585582

0 commit comments

Comments
 (0)