[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-155-g39ac464
Igor Murzov
e-mail at date.by
Sun Mar 25 14:25:24 UTC 2012
The following commit has been merged in the master branch:
commit 39ac4642bff9cd9813b8d4b2758b17fe945584cc
Author: Igor Murzov <e-mail at date.by>
Date: Sun Mar 25 17:47:37 2012 +0400
man: Move variable declaration to the right place.
diff --git a/completions/man b/completions/man
index a14b451..f14d6c0 100644
--- a/completions/man
+++ b/completions/man
@@ -8,7 +8,7 @@ _man()
local cur prev words cword split
_init_completion -s -n : || return
- local i sect manpath manext mansect
+ local sect manpath manext mansect
manext="@([0-9lnp]|[0-9][px]|man|3pm)?(.@([gx]z|bz2|lzma|Z))"
mansect="@([0-9lnp]|[0-9][px]|3pm)"
@@ -88,7 +88,7 @@ _man()
if [[ "$prev" != $mansect ]]; then
# File based completion for the rest, prepending ./ if needed
# (man 1.6f needs that for man pages in current dir)
- local start=${#COMPREPLY[@]}
+ local i start=${#COMPREPLY[@]}
_filedir $manext
for (( i=$start; i < ${#COMPREPLY[@]}; i++ )); do
[[ ${COMPREPLY[i]} == */* ]] || COMPREPLY[i]=./${COMPREPLY[i]}
--
bash-completion
More information about the Bash-completion-commits
mailing list