Skip to content

Commit 5f3e5f8

Browse files
committed
fix(firefox): do not split longopt argument
In the current implementation, an argument --longopt='-MOZ_LOG=xxx' would be doubly split. We avoid splitting the option argument of a long option '--longopt=...'.
1 parent 90ef9a2 commit 5f3e5f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/firefox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ _comp_cmd_firefox()
55
local cur prev words cword was_split comp_args
66
_comp_initialize -s -- "$@" || return
77

8-
[[ $cur == -MOZ_LOG*=* ]] && prev=${cur%%=*} cur=${cur#*=}
8+
[[ ! $was_split && $cur == -MOZ_LOG*=* ]] && prev=${cur%%=*} cur=${cur#*=}
99

1010
case $prev in
1111
--help | --version | --display | --UILocale | -MOZ_LOG | --new-window | --new-tab | \

0 commit comments

Comments
 (0)