mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-01 09:41:44 +02:00
don't remove *all* .zwc files, keep the first one (10881)
This commit is contained in:
parent
b572f0295c
commit
1f00aac0be
2 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
2000-04-20 Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
|
||||
|
||||
* 10881: Functions/Misc/zrecompile: don't remove *all* .zwc files,
|
||||
keep the first one
|
||||
|
||||
* 10868: Src/Zle/complist.c: fix off-by-one error in scrolled
|
||||
menu-selections
|
||||
|
||||
|
|
|
@ -66,13 +66,15 @@ if [[ -n $pats ]]; then
|
|||
argv=()
|
||||
fi
|
||||
|
||||
files=( ${files:#*(.zwc|~)} )
|
||||
if [[ $files[1] = -[RM] ]]; then
|
||||
map=( $files[1] )
|
||||
shift 1 files
|
||||
else
|
||||
map=()
|
||||
fi
|
||||
(( $#files )) || continue
|
||||
|
||||
files=( $files[1] ${files[2,-1]:#*(.zwc|~)} )
|
||||
|
||||
(( $#files )) || continue
|
||||
|
||||
|
|
Loading…
Reference in a new issue