[core] Make startup not fail when home buffer is customised

in #15421 core cannot find a certain text in the home buffer
to start adding additional elements. This did fail the
start up process.

Now if the starting point is not found the cursor is set
to the end of the buffer instead and no error is signaled.

This allows to still have the home buffer work as expected
even when the starting point has been somehow removed.
This commit is contained in:
Maxi Wolff 2022-04-02 21:23:58 +02:00
parent d3d50f580b
commit 38c034494d
No known key found for this signature in database
GPG Key ID: 2DD07025BFDBD89A
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ BOTCAPTION: a text to be encrusted at the bottom of the frame.
ADDITIONAL-WIDGETS: a function for inserting a widget under the frame."
(save-excursion
(goto-char (point-min))
(search-forward "Search in Spacemacs\]") ; TODO: this is dirty
(search-forward "Search in Spacemacs\]" nil "move to limit") ; TODO: this is dirty
(forward-line)
(let* ((buffer-read-only nil)
(note (concat "\n"