diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-10-03 11:16:09 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-10-03 11:16:32 -0500 |
commit | 33976b7c5741d96d99b3b78db9db2cf4dbf02de3 (patch) | |
tree | c56d108111a766209d1abd96dc57f6f0da22706f /etc | |
parent | 4bb5d06e860a0ce72a18f4b3cc64e3ddf92660e9 (diff) | |
download | vyatta-op-33976b7c5741d96d99b3b78db9db2cf4dbf02de3.tar.gz vyatta-op-33976b7c5741d96d99b3b78db9db2cf4dbf02de3.zip |
Make completions not get stuck when backspacing over a character in the last word, so the only compreply now contains the current word but is not equal to the current word
Diffstat (limited to 'etc')
-rw-r--r-- | etc/bash_completion.d/vyatta-op | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op index 47fac56..833d4a3 100644 --- a/etc/bash_completion.d/vyatta-op +++ b/etc/bash_completion.d/vyatta-op @@ -389,7 +389,7 @@ _vyatta_op_expand () _vyatta_op_last_comp=${_vyatta_op_last_comp_init} # Stop completions from getting stuck elif [ ${#_vyatta_op_completions[@]} -eq 1 ] && - [[ "$cur" == "${COMPREPLY[0]}" ]]; then + [[ "${COMPREPLY[0]}" =~ "$cur" ]]; then _vyatta_op_last_comp="${COMP_WORDS[*]}" # if there are no completions then always show the non-comps elif [ "${COMP_WORDS[*]}" == "$_vyatta_op_last_comp" ] || |