Skip to content

Commit da38b70

Browse files
committed
hooks.py(fix[set_hook]): Remove invalid _format parameter
why: tmux set-hook does not accept -F flag (only set-option does). Verified against ~/study/c/tmux/cmd-set-option.c:65 which shows set-hook accepts "agpRt:uw" only. what: - Remove _format parameter from set_hook() signature - Remove _format flag handling code
1 parent 3fcc34d commit da38b70

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/libtmux/hooks.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ def set_hook(
111111
self,
112112
hook: str,
113113
value: int | str,
114-
_format: bool | None = None,
115114
unset: bool | None = None,
116115
run: bool | None = None,
117116
prevent_overwrite: bool | None = None,
@@ -158,10 +157,6 @@ def set_hook(
158157
assert isinstance(run, bool)
159158
flags.append("-R")
160159

161-
if _format is not None and _format:
162-
assert isinstance(_format, bool)
163-
flags.append("-F")
164-
165160
if prevent_overwrite is not None and prevent_overwrite:
166161
assert isinstance(prevent_overwrite, bool)
167162
flags.append("-o")

0 commit comments

Comments
 (0)