Skip to content

Commit 1daf8e9

Browse files
committed
feat(Pane): Use OptionsMixin for Pane.set_option, Pane.show_option(s)
1 parent 980d01e commit 1daf8e9

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

@@ -35,7 +37,7 @@
3537

3638

3739
@dataclasses.dataclass()
38-
class Pane(Obj):
40+
class Pane(Obj, OptionsMixin):
3941
""":term:`tmux(1)` :term:`Pane` [pane_manual]_.
4042
4143
``Pane`` instances can send commands directly to a pane, or traverse
@@ -75,6 +77,7 @@ class Pane(Obj):
7577
Accessed April 1st, 2018.
7678
"""
7779

80+
default_option_scope: OptionScope | None = OptionScope.Pane
7881
server: Server
7982

8083
def refresh(self) -> None:

0 commit comments

Comments
 (0)