summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-09-30 16:40:56 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-09-30 17:09:24 -0500
commit1824fff85436a826f53e9ec07a3e07376b2101be (patch)
tree5d197c8fb88c88e98ecceaf9f875fde8dd11f9a0 /etc
parenta67246ababfe0b5a73f7818ee74baff5ec34fe10 (diff)
downloadvyatta-op-1824fff85436a826f53e9ec07a3e07376b2101be.tar.gz
vyatta-op-1824fff85436a826f53e9ec07a3e07376b2101be.zip
Fix problem with recovering from invalid completion
Diffstat (limited to 'etc')
-rw-r--r--etc/bash_completion.d/vyatta-op1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op
index ed751c0..d9d7141 100644
--- a/etc/bash_completion.d/vyatta-op
+++ b/etc/bash_completion.d/vyatta-op
@@ -373,6 +373,7 @@ _vyatta_op_expand ()
echo
_vyatta_op_invalid_completion
COMPREPLY=( "" " " )
+ _vyatta_op_last_comp=${_vyatta_op_last_comp_init}
# if there are no completions then always show the non-comps
elif [ "${COMP_WORDS[*]}" == "$_vyatta_op_last_comp" ] ||
[ ${#_vyatta_op_completions[@]} -eq 0 ]; then