Commit 3dbb8f8
committed
options(fix[scope_flag]): Skip empty Session scope flag in tmux commands
why: When explicitly passing scope=OptionScope.Session, the empty string
from OPTION_SCOPE_FLAG_MAP was added as an argument, causing tmux
"ambiguous option" error. tmux interprets no scope flag as session scope.
what:
- Check if scope_flag is truthy before adding to flags (4 locations)
- Fixes set_option, unset_option, _show_options_raw, _show_option_raw1 parent 83afac9 commit 3dbb8f8
1 file changed
+12
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
679 | | - | |
680 | | - | |
681 | | - | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
| |||
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
767 | | - | |
768 | | - | |
769 | | - | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
| |||
830 | 830 | | |
831 | 831 | | |
832 | 832 | | |
833 | | - | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
834 | 836 | | |
835 | 837 | | |
836 | 838 | | |
| |||
1053 | 1055 | | |
1054 | 1056 | | |
1055 | 1057 | | |
1056 | | - | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
1057 | 1061 | | |
1058 | 1062 | | |
1059 | 1063 | | |
| |||
0 commit comments