Skip to content

Commit 1db720e

Browse files
committed
feat(Pane): Use OptionsMixin for Pane.set_option, Pane.show_option(s)
1 parent 4772f00 commit 1db720e

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
@@ -16,11 +16,13 @@
1616
from libtmux.constants import (
1717
PANE_DIRECTION_FLAG_MAP,
1818
RESIZE_ADJUSTMENT_DIRECTION_FLAG_MAP,
19+
OptionScope,
1920
PaneDirection,
2021
ResizeAdjustmentDirection,
2122
)
2223
from libtmux.formats import FORMAT_SEPARATOR
2324
from libtmux.neo import Obj, fetch_obj
25+
from libtmux.options import OptionsMixin
2426

2527
from . import exc
2628

@@ -34,7 +36,7 @@
3436

3537

3638
@dataclasses.dataclass()
37-
class Pane(Obj):
39+
class Pane(Obj, OptionsMixin):
3840
""":term:`tmux(1)` :term:`Pane` [pane_manual]_.
3941
4042
``Pane`` instances can send commands directly to a pane, or traverse
@@ -74,6 +76,7 @@ class Pane(Obj):
7476
Accessed April 1st, 2018.
7577
"""
7678

79+
default_option_scope: t.Optional[OptionScope] = OptionScope.Pane
7780
server: "Server"
7881

7982
def refresh(self) -> None:

0 commit comments

Comments
 (0)