[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:
parent
d3d50f580b
commit
38c034494d
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue