Commit d7d1707
committed
Server(fix[confirm_before,command_prompt]): gate -b behind has_gte_version("3.3")
why: Both methods unconditionally emit -b despite their docstrings noting it
requires tmux 3.3+. On older tmux this causes a hard command error instead
of the project-convention warn-and-skip behaviour.
what:
- confirm_before: add has_gte_version("3.3") guard; warn and skip -b on older tmux
- command_prompt: same
- Add lazy imports for warnings and has_gte_version inside each method,
matching the pattern already used in pane.py1 parent 1324372 commit d7d1707
1 file changed
+26
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
866 | 866 | | |
867 | 867 | | |
868 | 868 | | |
869 | | - | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
870 | 882 | | |
871 | 883 | | |
872 | 884 | | |
| |||
941 | 953 | | |
942 | 954 | | |
943 | 955 | | |
944 | | - | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
945 | 969 | | |
946 | 970 | | |
947 | 971 | | |
| |||
0 commit comments