##// END OF EJS Templates
zsh_completion: fix issue with overlong branch/tag names
Johannes Schlatow -
r18419:45bb5df4 default
parent child Browse files
Show More
@@ -174,11 +174,10 b' typeset -A _hg_cmd_globals'
174
174
175 _hg_cmd tags | while read tag
175 _hg_cmd tags | while read tag
176 do
176 do
177 tags+=(${tag/ # [0-9]#:*})
177 tags+=(${tag/ #[0-9]#:*})
178 done
178 done
179 (( $#tags )) && _describe -t tags 'tags' tags
179 (( $#tags )) && _describe -t tags 'tags' tags
180 }
180 }
181
182 _hg_bookmarks() {
181 _hg_bookmarks() {
183 typeset -a bookmark bookmarks
182 typeset -a bookmark bookmarks
184
183
@@ -198,7 +197,7 b' typeset -A _hg_cmd_globals'
198
197
199 _hg_cmd branches | while read branch
198 _hg_cmd branches | while read branch
200 do
199 do
201 branches+=(${branch/ # [0-9]#:*})
200 branches+=(${branch/ #[0-9]#:*})
202 done
201 done
203 (( $#branches )) && _describe -t branches 'branches' branches
202 (( $#branches )) && _describe -t branches 'branches' branches
204 }
203 }
General Comments 0
You need to be logged in to leave comments. Login now