ui/doom-dashboard: fix wrong-type-arg error on reload

This commit is contained in:
Henrik Lissner 2018-03-27 19:06:22 -04:00
parent 06577c9fe3
commit 93678494cb
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -216,9 +216,7 @@ controlled by `+doom-dashboard-pwd-policy'."
(insert (insert
(make-string (max 0 (- (/ (window-height (get-buffer-window)) 2) (make-string (max 0 (- (/ (window-height (get-buffer-window)) 2)
(/ (count-lines (point-min) (point-max)) 2))) (/ (count-lines (point-min) (point-max)) 2)))
?\n))) ?\n))))
(unless (button-at (point))
(goto-char (next-button (point-min)))))
(+doom-dashboard|detect-project) (+doom-dashboard|detect-project)
(+doom-dashboard|resize) (+doom-dashboard|resize)
(+doom-dashboard-update-pwd) (+doom-dashboard-update-pwd)