comparison contrib/zsh_completion @ 3875:729f354f3f09

zsh: better fix for partial completions Properly handle relative paths followed by partial filenames hg add ../path/to/file/partial[TAB]
author Steve Borho <steve@borho.org>
date Tue, 12 Dec 2006 15:34:11 -0600
parents 45a751d73080
children 2d3379c598c1
comparison
equal deleted inserted replaced
3874:e88d03c2a3d9 3875:729f354f3f09
176 _files 176 _files
177 fi 177 fi
178 } 178 }
179 179
180 _hg_status() { 180 _hg_status() {
181 [[ -d $PREFIX ]] || PREFIX=$PREFIX:h
181 status_files=(${(ps:\0:)"$(_hg_cmd status -0n$1 ./$PREFIX 2>/dev/null)"}) 182 status_files=(${(ps:\0:)"$(_hg_cmd status -0n$1 ./$PREFIX 2>/dev/null)"})
182 } 183 }
183 184
184 _hg_unknown() { 185 _hg_unknown() {
185 typeset -a status_files 186 typeset -a status_files