summaryrefslogtreecommitdiffstats
path: root/Functions/Calendar/calendar
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-03-26 14:33:31 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-03-26 14:33:31 +0000
commit4b7b7f56f1cde7e317fce378d0d0e5c83686ff72 (patch)
tree2420ad49f480b9c2de0c3f13da7bca9f8a415678 /Functions/Calendar/calendar
parentusers/11333: fix users-hosts for ssh when user matched (diff)
downloadzsh-4b7b7f56f1cde7e317fce378d0d0e5c83686ff72.tar
zsh-4b7b7f56f1cde7e317fce378d0d0e5c83686ff72.tar.gz
zsh-4b7b7f56f1cde7e317fce378d0d0e5c83686ff72.tar.bz2
zsh-4b7b7f56f1cde7e317fce378d0d0e5c83686ff72.tar.lz
zsh-4b7b7f56f1cde7e317fce378d0d0e5c83686ff72.tar.xz
zsh-4b7b7f56f1cde7e317fce378d0d0e5c83686ff72.tar.zst
zsh-4b7b7f56f1cde7e317fce378d0d0e5c83686ff72.zip
unposted: more random calendar system fixes and improvements
Diffstat (limited to 'Functions/Calendar/calendar')
-rw-r--r--Functions/Calendar/calendar9
1 files changed, 7 insertions, 2 deletions
diff --git a/Functions/Calendar/calendar b/Functions/Calendar/calendar
index ea81c7ae7..08903d04c 100644
--- a/Functions/Calendar/calendar
+++ b/Functions/Calendar/calendar
@@ -5,7 +5,7 @@ local line restline REPLY REPLY2 userange pruned nobackup datefmt
local calendar donefile sched newfile warnstr mywarnstr newdate
integer time start stop today ndays y m d next=-1 shown done nodone
integer verbose warntime mywarntime t tcalc tsched i rstat remaining
-integer showcount icount repeating repeattime resched
+integer showcount icount repeating repeattime resched showall
local -a calendar_entries calendar_addlines
local -a times calopts showprog lockfiles match mbegin mend
@@ -96,6 +96,11 @@ while [[ ${argv[opti+1]} = -* ]]; do
###########################
# Options without arguments
###########################
+ (a)
+ # Show all entries
+ (( showall = 1 ))
+ ;;
+
(d)
# Move out of date items to the done file.
(( done = 1 ))
@@ -279,7 +284,7 @@ fi
fi
fi
(( shown = 0 ))
- if (( t >= start && (remaining || t <= stop || icount < showcount) ))
+ if (( showall || (t >= start && (remaining || t <= stop || icount < showcount)) ))
then
$showprog $start $stop "$line"
(( icount++ ))