aboutsummaryrefslogtreecommitdiff
path: root/module/output/info.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-11-03 13:57:46 +0100
committerHugo Hörnquist <hugo@hornquist.se>2019-11-03 13:57:46 +0100
commitcecffe9ebdd0bb1efb628da320039fec9e6cba39 (patch)
treee0268ee169f4c12e1f2b3dbd7ec9976742ba9944 /module/output/info.scm
parentRemove make-vcomponent. (diff)
downloadcalp-cecffe9ebdd0bb1efb628da320039fec9e6cba39.tar.gz
calp-cecffe9ebdd0bb1efb628da320039fec9e6cba39.tar.xz
Move stuff between vcomponent/{base,parse}.
Diffstat (limited to '')
-rw-r--r--module/output/info.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/output/info.scm b/module/output/info.scm
index 62600472..eba0979c 100644
--- a/module/output/info.scm
+++ b/module/output/info.scm
@@ -11,7 +11,9 @@
(format #t "~%Found ~a calendars, named:~%~{ - [~4@a] ~a~a\x1b[m~%~}~%"
(length calendars)
(concatenate
- (zip (map (lambda (c) (length (children c 'VEVENT))) calendars)
+ (zip (map (lambda (c) (length (filter (lambda (e) (eq? 'VEVENT (type e)))
+ (children c))))
+ calendars)
(map (compose color-escape (extract 'COLOR)) calendars)
(map (extract 'NAME) calendars)))))