[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 38516ee43194fd496971a9c37e23109f3816e4bf
Guillaume Rousse
guillaume at oberkampf.msr-inria.inria.fr
Thu Dec 31 16:36:43 UTC 2009
The following commit has been merged in the master branch:
commit 8c483668c1ae20d54b7f007e2596f459dd62d2ca
Author: Guillaume Rousse <guillaume at oberkampf.msr-inria.inria.fr>
Date: Wed Dec 30 00:43:31 2009 +0100
use consistent variable names with screen completion
diff --git a/contrib/p4 b/contrib/p4
index 2c2a65c..4f5c66b 100644
--- a/contrib/p4
+++ b/contrib/p4
@@ -3,7 +3,7 @@
have p4 &&
_p4()
{
- local cur prev prev2 p4commands p4filetypes
+ local cur prev preprev p4commands p4filetypes
COMPREPLY=()
cur=`_get_cword`
@@ -31,10 +31,10 @@ _p4()
;;
esac
elif [ $COMP_CWORD -gt 2 ]; then
- prev2=${COMP_WORDS[COMP_CWORD-2]}
+ preprev=${COMP_WORDS[COMP_CWORD-2]}
case $prev in
-t)
- case $prev2 in
+ case $preprev in
add|edit|reopen)
COMPREPLY=( $( compgen -W "$p4filetypes" -- "$cur") )
;;
--
bash-completion
More information about the Bash-completion-commits
mailing list