Commit 8f30712
committed
Server(fix[show_prompt_history,clear_prompt_history]): guard tmux 3.3+
why: Both commands were added in tmux 3.3 but libtmux supports 3.2a.
Without a guard, callers on 3.2a get a raw "unknown command" tmux
error instead of a clean LibTmuxException with version context.
what:
- Add has_gte_version("3.3") guard to show_prompt_history
- Add has_gte_version("3.3") guard to clear_prompt_history
- Pattern matches confirm_before / command_prompt guards in same file1 parent 8b27ca3 commit 8f30712
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1141 | 1141 | | |
1142 | 1142 | | |
1143 | 1143 | | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
1144 | 1150 | | |
1145 | 1151 | | |
1146 | 1152 | | |
| |||
1170 | 1176 | | |
1171 | 1177 | | |
1172 | 1178 | | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
1173 | 1185 | | |
1174 | 1186 | | |
1175 | 1187 | | |
| |||
0 commit comments