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