diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-20 12:45:21 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-20 12:45:21 +0000 |
commit | 1f00aac0be24a5fb5438e63a2f4f3bf21ba47dfc (patch) | |
tree | 3030802e7f1f2ebba98dec680b4bf5a7eab8d096 | |
parent | b572f0295ca66596124d413f0f1266a5415d2295 (diff) | |
download | zsh-1f00aac0be24a5fb5438e63a2f4f3bf21ba47dfc.tar.gz zsh-1f00aac0be24a5fb5438e63a2f4f3bf21ba47dfc.tar.xz zsh-1f00aac0be24a5fb5438e63a2f4f3bf21ba47dfc.zip |
don't remove *all* .zwc files, keep the first one (10881)
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Functions/Misc/zrecompile | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index d1279b339..5a17b3387 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/Functions/Misc/zrecompile b/Functions/Misc/zrecompile index 1cdd05e0e..88d976f5b 100644 --- a/Functions/Misc/zrecompile +++ b/Functions/Misc/zrecompile @@ -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 |