Skip to content

Commit f50cfbb

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 ce6e5df commit f50cfbb

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
@@ -875,20 +875,20 @@ def set_window_option(
875875
return self.set_option(option=option, value=value)
876876

877877
def show_window_options(self, g: bool | None = False) -> WindowOptionDict:
878-
"""Show options for tmux window. Deprecated by :meth:`Window._show_options()`.
878+
"""Show options for tmux window. Deprecated by :meth:`Window.show_options()`.
879879
880880
.. deprecated:: 0.26
881881
882-
Deprecated by :meth:`Window._show_options()`.
882+
Deprecated by :meth:`Window.show_options()`.
883883
884884
"""
885885
warnings.warn(
886886
"Window.show_window_options() is deprecated",
887887
category=DeprecationWarning,
888888
stacklevel=2,
889889
)
890-
return self._show_options(
891-
g=g,
890+
return self.show_options(
891+
global_=g or False,
892892
scope=OptionScope.Window,
893893
)
894894

0 commit comments

Comments
 (0)