Skip to content

Commit d8c6e9d

Browse files
committed
feat(Pane): Use OptionsMixin for Pane.set_option, Pane.show_option(s)
1 parent 8ac3024 commit d8c6e9d

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
@@ -18,11 +18,13 @@
1818
from libtmux.constants import (
1919
PANE_DIRECTION_FLAG_MAP,
2020
RESIZE_ADJUSTMENT_DIRECTION_FLAG_MAP,
21+
OptionScope,
2122
PaneDirection,
2223
ResizeAdjustmentDirection,
2324
)
2425
from libtmux.formats import FORMAT_SEPARATOR
2526
from libtmux.neo import Obj, fetch_obj
27+
from libtmux.options import OptionsMixin
2628

2729
if t.TYPE_CHECKING:
2830
import sys
@@ -43,7 +45,7 @@
4345

4446

4547
@dataclasses.dataclass()
46-
class Pane(Obj):
48+
class Pane(Obj, OptionsMixin):
4749
""":term:`tmux(1)` :term:`Pane` [pane_manual]_.
4850
4951
``Pane`` instances can send commands directly to a pane, or traverse
@@ -90,6 +92,7 @@ class Pane(Obj):
9092
Accessed April 1st, 2018.
9193
"""
9294

95+
default_option_scope: OptionScope | None = OptionScope.Pane
9396
server: Server
9497

9598
def __enter__(self) -> Self:

0 commit comments

Comments
 (0)