Fix broken recentf functionality due to PR #15574

A final 'force push' to PR #15574 implemented functionality to make the banner
size depend on the actual 'startup list' instead of the configured maximum
startup list size. However, that 'new' functionality uses
`spacemacs-buffer//do-insert-startupify-lists` which activates `recentf-mode`,
and unfortunately, activating `recentf-mode` this early in the startup process
somehow breaks recentf functionality, see comments at
a485b5a84b.

This commit 'reverts' the functionality by making the banner size depend on the
configured maximum startup list size.
This commit is contained in:
Daniel Nicolai 2022-06-09 20:58:18 +02:00 committed by Maxi Wolff
parent 87823c3081
commit e31804f5c8
1 changed files with 1 additions and 0 deletions

View File

@ -275,6 +275,7 @@ Returns height in units of line height with a minimum of 1."
(setq dotspacemacs-startup-buffer-show-icons nil)
(setq lines (with-temp-buffer
(spacemacs-buffer//do-insert-startupify-lists)
(recentf-mode -1)
(line-number-at-pos)))
;; (count-lines (point-min) (point-max)))
(setq dotspacemacs-startup-buffer-show-icons icons)