Skip to content

Commit f827521

Browse files
committed
OptionsMixin(fix[show_option]): Forward legacy g parameter
why: The g parameter was accepted but silently ignored, breaking backward compatibility for callers using the legacy API what: - Forward g parameter to _show_option() via global_ or g - Ensures show_option("foo", g=True) works as expected
1 parent 327e85e commit f827521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libtmux/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ def show_option(
12101210
"""
12111211
return self._show_option(
12121212
option=option,
1213-
global_=global_,
1213+
global_=global_ or g,
12141214
scope=scope,
12151215
ignore_errors=ignore_errors,
12161216
include_hooks=include_hooks,

0 commit comments

Comments
 (0)