Skip to content

Commit 458003f

Browse files
committed
feat(Pane): Use OptionMixin for Pane.set_option, Pane.show_option(s)
1 parent eef72da commit 458003f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/libtmux/pane.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
import warnings
1212
from typing import overload
1313

14-
from libtmux.common import tmux_cmd
14+
from libtmux.common import OptionMixin, tmux_cmd
15+
from libtmux.constants import OptionScope
1516
from libtmux.neo import Obj, fetch_obj
1617

1718
from . import exc
@@ -26,7 +27,7 @@
2627

2728

2829
@dataclasses.dataclass()
29-
class Pane(Obj):
30+
class Pane(Obj, OptionMixin):
3031
""":term:`tmux(1)` :term:`Pane` [pane_manual]_.
3132
3233
``Pane`` instances can send commands directly to a pane, or traverse
@@ -66,6 +67,7 @@ class Pane(Obj):
6667
Accessed April 1st, 2018.
6768
"""
6869

70+
default_scope: t.Optional[OptionScope] = OptionScope.Pane
6971
server: "Server"
7072

7173
def refresh(self) -> None:

0 commit comments

Comments
 (0)