##// 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 175 _hg_cmd tags | while read tag
176 176 do
177 tags+=(${tag/ # [0-9]#:*})
177 tags+=(${tag/ #[0-9]#:*})
178 178 done
179 (( $#tags )) && _describe -t tags 'tags' tags
179 (( $#tags )) && _describe -t tags 'tags' tags
180 180 }
181
182 181 _hg_bookmarks() {
183 182 typeset -a bookmark bookmarks
184 183
@@ -198,7 +197,7 b' typeset -A _hg_cmd_globals'
198 197
199 198 _hg_cmd branches | while read branch
200 199 do
201 branches+=(${branch/ # [0-9]#:*})
200 branches+=(${branch/ #[0-9]#:*})
202 201 done
203 202 (( $#branches )) && _describe -t branches 'branches' branches
204 203 }
General Comments 0
You need to be logged in to leave comments. Login now