Skip to content

Commit 042b168

Browse files
committed
Window(refactor[show_window_options]): Update deprecation to use show_options()
why: Deprecation message incorrectly pointed to private _show_options(). what: - Update docstring to reference public Window.show_options() - Update implementation to call show_options() instead of _show_options()
1 parent e9b7ca2 commit 042b168

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libtmux/window.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -884,20 +884,20 @@ def set_window_option(
884884
return self.set_option(option=option, value=value)
885885

886886
def show_window_options(self, g: bool | None = False) -> WindowOptionDict:
887-
"""Show options for tmux window. Deprecated by :meth:`Window._show_options()`.
887+
"""Show options for tmux window. Deprecated by :meth:`Window.show_options()`.
888888
889889
.. deprecated:: 0.26
890890
891-
Deprecated by :meth:`Window._show_options()`.
891+
Deprecated by :meth:`Window.show_options()`.
892892
893893
"""
894894
warnings.warn(
895895
"Window.show_window_options() is deprecated",
896896
category=DeprecationWarning,
897897
stacklevel=2,
898898
)
899-
return self._show_options(
900-
g=g,
899+
return self.show_options(
900+
global_=g or False,
901901
scope=OptionScope.Window,
902902
)
903903

0 commit comments

Comments
 (0)