From d0dc7ab36a2e2d3a84545dcd90207fab447e9e82 Mon Sep 17 00:00:00 2001 From: Luis Henriquez-Perez Date: Sat, 28 Dec 2019 12:43:14 -0500 Subject: [PATCH] Fix error when `dashboard--section-starts' is nil. --- dashboard.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dashboard.el b/dashboard.el index b55f0ea2..f28ecd00 100644 --- a/dashboard.el +++ b/dashboard.el @@ -203,7 +203,8 @@ Optional prefix ARG says how many lines to move; default is one line." (dashboard-insert-page-break))) dashboard-items) (when dashboard-center-content - (goto-char (car (last dashboard--section-starts))) + (when dashboard--section-starts + (goto-char (car (last dashboard--section-starts)))) (let ((margin (floor (/ (max (- (window-width) max-line-length) 0) 2)))) (while (not (eobp)) (and (not (eq ? (char-after)))