diff --git a/dashboard.el b/dashboard.el index cae7107b..9e6ea2d0 100644 --- a/dashboard.el +++ b/dashboard.el @@ -91,16 +91,16 @@ (defun dashboard-next-section () "Navigate forward to next section." - (interactive - (let ((current-position (point)) - (next-section-start nil) - (section-starts (reverse dashboard--section-starts))) - (dolist (elt section-starts) - (when (and (not next-section-start) - (> elt current-position)) - (setq next-section-start elt))) - (when next-section-start - (goto-char next-section-start))))) + (interactive) + (let ((current-position (point)) + (next-section-start nil) + (section-starts (reverse dashboard--section-starts))) + (dolist (elt section-starts) + (when (and (not next-section-start) + (> elt current-position)) + (setq next-section-start elt))) + (when next-section-start + (goto-char next-section-start)))) (defun dashboard-maximum-section-length () "For the just-inserted section, calculate the length of the longest line."