Skip to content

Commit 0ac2b0b

Browse files
authored
Merge pull request #5965 from last-genius/private/asultanov/fix-autocompletion
xe autocompletion: Only show required/optional prefixes when parameter name is empty
2 parents 9156a03 + b60a081 commit 0ac2b0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ocaml/xe-cli/bash-completion

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,9 @@ _xe()
617617
__xe_debug "triggering autocompletion for parameter names, param is '$param'"
618618

619619
IFS=$'\n,'
620-
REQD_OPTIONAL_PARAMS=1
620+
if [ ! "$param" ]; then
621+
REQD_OPTIONAL_PARAMS=1
622+
fi
621623
get_params_for_command "${OLDSTYLE_WORDS[1]}"
622624

623625
# Don't suggest already provided parameters

0 commit comments

Comments
 (0)