zshrc: fix typo in default value handling of changed() and new()
authorCarsten Hey <carsten@debian.org>
Mon, 28 Jun 2010 12:03:39 +0000 (14:03 +0200)
committerFrank Terbeck <ft@bewatermyfriend.org>
Tue, 29 Jun 2010 09:00:46 +0000 (11:00 +0200)
Signed-off-by: Carsten Hey <carsten@debian.org>
etc/zsh/zshrc

index bd54c2b..faf6c31 100644 (file)
@@ -3525,13 +3525,13 @@ regcheck() {
 #f5# List files which have been changed within the last {\it n} days, {\it n} defaults to 1
 changed() {
     emulate -L zsh
-    print -l *(c-${1:1})
+    print -l *(c-${1:-1})
 }
 
 #f5# List files which have been modified within the last {\it n} days, {\it n} defaults to 1
 new() {
     emulate -L zsh
-    print -l *(m-${1:1})
+    print -l *(m-${1:-1})
 }
 
 #f5# Grep in history