diff options
author | Peter Stephenson <pws@zsh.org> | 2014-02-28 18:45:35 +0000 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2014-02-28 18:45:35 +0000 |
commit | f798f13b0eba1f31cd2d760441ac9d36a6ac5263 (patch) | |
tree | 2015479d9fcda696f4b91235bc21bf539ebb6a7c /Completion/Unix/Command/_rm | |
parent | 52f72086c93d4b5faec06665bc352246d3f4ec3f (diff) | |
parent | 7d7242405a82332716b5fdba68f32ecabf6349be (diff) | |
download | zsh-f798f13b0eba1f31cd2d760441ac9d36a6ac5263.tar.gz zsh-f798f13b0eba1f31cd2d760441ac9d36a6ac5263.tar.xz zsh-f798f13b0eba1f31cd2d760441ac9d36a6ac5263.zip |
Fix merge conflict
Diffstat (limited to 'Completion/Unix/Command/_rm')
-rw-r--r-- | Completion/Unix/Command/_rm | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Completion/Unix/Command/_rm b/Completion/Unix/Command/_rm index 20f44afc5..1f156c481 100644 --- a/Completion/Unix/Command/_rm +++ b/Completion/Unix/Command/_rm @@ -32,13 +32,9 @@ _arguments -C $opts \ case $state in (file) - declare -a ignored - ignored=() - ((CURRENT > 1)) && - ignored+=(${line[1,CURRENT-1]//(#m)[\[\]()\\*?#<>~\^]/\\$MATCH}) - ((CURRENT < $#line)) && - ignored+=(${line[CURRENT+1,-1]//(#m)[\[\]()\\*?#<>~\^]/\\$MATCH}) - _files -F ignored && ret=0 + line[CURRENT]=() + line=( ${line//(#m)[\[\]()\\*?#<>~\^\|]/\\$MATCH} ) + _files -F line && ret=0 ;; esac |