fancy-splash: start replacing from the start

Duh.
This commit is contained in:
TEC 2022-11-08 23:29:13 +08:00
parent 073b58ea32
commit 27cf1ef1ee
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 1 additions and 0 deletions

View File

@ -2183,6 +2183,7 @@ The theming is performed using `fancy-splash-template-colours'
and the current theme."
(with-temp-buffer
(insert-file-contents template)
(goto-char (point-min))
(if (re-search-forward "$height" nil t)
(replace-match (number-to-string height) t t)
(if (re-search-forward "height=\"100\\(?:\\.0[0-9]*\\)?\"" nil t)