Skip to content

Commit d7bd5e7

Browse files
committed
feat(Pane): Use OptionsMixin for Pane.set_option, Pane.show_option(s)
1 parent de1efac commit d7bd5e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libtmux/pane.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@
1717
from libtmux.constants import (
1818
PANE_DIRECTION_FLAG_MAP,
1919
RESIZE_ADJUSTMENT_DIRECTION_FLAG_MAP,
20+
OptionScope,
2021
PaneDirection,
2122
ResizeAdjustmentDirection,
2223
)
2324
from libtmux.formats import FORMAT_SEPARATOR
2425
from libtmux.neo import Obj, fetch_obj
26+
from libtmux.options import OptionsMixin
2527

2628
from . import exc
2729

@@ -42,7 +44,7 @@
4244

4345

4446
@dataclasses.dataclass()
45-
class Pane(Obj):
47+
class Pane(Obj, OptionsMixin):
4648
""":term:`tmux(1)` :term:`Pane` [pane_manual]_.
4749
4850
``Pane`` instances can send commands directly to a pane, or traverse
@@ -89,6 +91,7 @@ class Pane(Obj):
8991
Accessed April 1st, 2018.
9092
"""
9193

94+
default_option_scope: OptionScope | None = OptionScope.Pane
9295
server: Server
9396

9497
def __enter__(self) -> Self:

0 commit comments

Comments
 (0)