Skip to content

Commit 7114a1b

Browse files
committed
fix(scope): only a single scope flag is allowed
1 parent b1deaeb commit 7114a1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zsh-abbr.zsh

+2
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ _zsh_abbr() {
517517
"--global"|\
518518
"-g")
519519
[ "$scope_set" = true ] && util_bad_options
520+
scope_set=true
520521
opt_global=true
521522
((number_opts++))
522523
;;
@@ -563,6 +564,7 @@ _zsh_abbr() {
563564
"--universal"|\
564565
"-U")
565566
[ "$scope_set" = true ] && util_bad_options
567+
scope_set=true
566568
((number_opts++))
567569
;;
568570
"--version"|\

0 commit comments

Comments
 (0)