From 65e45654b3ef2708225b83f04d9c5f8a55d06143 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 3 Nov 2009 09:57:34 +0000 Subject: unposted: brief calendar display --- Functions/Calendar/calendar | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Functions') diff --git a/Functions/Calendar/calendar b/Functions/Calendar/calendar index c5605fa71..f6316eb18 100644 --- a/Functions/Calendar/calendar +++ b/Functions/Calendar/calendar @@ -7,7 +7,7 @@ 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 showall brief local -a calendar_entries calendar_addlines -local -a times calopts showprog lockfiles match mbegin mend +local -a times calopts showprog lockfiles match mbegin mend tmplines local -A reply zmodload -i zsh/datetime || return 1 @@ -298,8 +298,8 @@ fi fi (( shown = 0 )) if (( brief )); then - line=("${(f)line}") - showline=${(F)${${line[1,brief]}}} + tmplines=("${(f)line}") + showline=${(F)${${tmplines[1,brief]}}} else showline=$line fi -- cgit 1.4.1