##// END OF EJS Templates
bash_completion: small cleanup and bugfix...
Alexis S. L. Carvalho -
r1152:ff560ce0 default
parent child Browse files
Show More
@@ -41,11 +41,9 b''
41 41
42 42 for (( i=1; $i<=$COMP_CWORD; i++ )); do
43 43 if [[ "${COMP_WORDS[i]}" != -* ]]; then
44 for f in $filters; do
45 if [[ ${COMP_WORDS[i-1]} == $f ]]; then
46 continue 2
47 fi
48 done
44 if [[ ${COMP_WORDS[i-1]} == @($filters|$global_args) ]]; then
45 continue
46 fi
49 47 count=$(($count + 1))
50 48 fi
51 49 done
@@ -154,7 +152,7 b''
154 152 COMPREPLY=(${COMPREPLY[@]:-} $( compgen -f -X "!*.d" -- "$cur" ))
155 153 ;;
156 154 cat)
157 local count=$(_hg_count_non_option -o --output)
155 local count=$(_hg_count_non_option '-o|--output')
158 156 if [ $count = 2 ]; then
159 157 _hg_tags
160 158 else
General Comments 0
You need to be logged in to leave comments. Login now