Fix #3389: wrong-type-argument on closing calendar

Can happen if you don't open the calendar through =calendar.
This commit is contained in:
Henrik Lissner 2020-10-12 03:37:08 -04:00
parent 87a9ed0797
commit fdbf68cf3c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -31,7 +31,8 @@
(if (featurep! :ui workspaces) (if (featurep! :ui workspaces)
(+workspace/delete "Calendar") (+workspace/delete "Calendar")
(doom-kill-matching-buffers "^\\*cfw:") (doom-kill-matching-buffers "^\\*cfw:")
(set-window-configuration +calendar--wconf) (when (window-configuration-p +calendar--wconf)
(set-window-configuration +calendar--wconf))
(setq +calendar--wconf nil))) (setq +calendar--wconf nil)))
;;;###autoload ;;;###autoload