Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f4efda4

Browse files
authored
Use non-interactive for deleteing char (#422)
1 parent 2182528 commit f4efda4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dashboard.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ Optional argument ARGS adviced function arguments."
389389
(defun dashboard-insert-startupify-lists ()
390390
"Insert the list of widgets into the buffer."
391391
(interactive)
392-
(let ((recentf-is-on (recentf-enabled-p))
392+
(let ((inhibit-redisplay t)
393+
(recentf-is-on (recentf-enabled-p))
393394
(origial-recentf-list recentf-list)
394395
(dashboard-num-recents (or (cdr (assoc 'recents dashboard-items)) 0))
395396
(max-line-length 0))
@@ -428,7 +429,7 @@ Optional argument ARGS adviced function arguments."
428429
(save-excursion
429430
(dolist (start dashboard--section-starts)
430431
(goto-char start)
431-
(backward-delete-char 1) ; delete the newline we added previously
432+
(delete-char -1) ; delete the newline we added previously
432433
(insert dashboard-page-separator)))
433434
(dashboard-insert-footer)
434435
(goto-char (point-min))

0 commit comments

Comments
 (0)