diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-10-04 15:12:15 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-10-04 15:12:15 -0500 |
commit | 5bc0810342d5f1c78a29f1d54fc79fabc586298a (patch) | |
tree | 97bf17e53a030e87519cd723a8c18320fb81d408 | |
parent | c11bd4d21b27544912086be1a7197e0d25f6207a (diff) | |
download | vyatta-op-5bc0810342d5f1c78a29f1d54fc79fabc586298a.tar.gz vyatta-op-5bc0810342d5f1c78a29f1d54fc79fabc586298a.zip |
Fix a bug in op mode handling of non sticking completions, we want the help text if the current completion is empty for consistency
-rw-r--r-- | etc/bash_completion.d/vyatta-op | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op index 22353e1..f79cb38 100644 --- a/etc/bash_completion.d/vyatta-op +++ b/etc/bash_completion.d/vyatta-op @@ -411,6 +411,7 @@ _vyatta_op_expand () _vyatta_op_last_comp=${_vyatta_op_last_comp_init} # Stop completions from getting stuck elif [ ${#_vyatta_op_completions[@]} -eq 1 ] && + [ -n "$cur" ] && [[ "${COMPREPLY[0]}" =~ "$cur" ]]; then _vyatta_op_last_comp=${_vyatta_op_last_comp_init} # if there are no completions then always show the non-comps |