Typo in calculation

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2322 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2015-09-25 09:38:59 +00:00
parent 242996154e
commit da21d8ba8d

View File

@@ -18,11 +18,12 @@ _cli.php()
EXPERT="-expert"
unset COMP_WORDS[1]
COMP_WORDS=("${COMP_WORDS[@]}")
COMP_CWORD=${COMP_CWORD}-1
COMP_CWORD=$((${COMP_CWORD}-1))
else
EXPERT=""
fi
echo "COMP_CWORD=$COMP_CWORD" >> /tmp/debug
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
ante="${COMP_WORDS[COMP_CWORD-2]}"