fix(lib): reset font size before setting big font mode

Calling (doom-adjust-font-size 1) repeatedly would keep increase the
font size because an increment is passed.

When loading themes, the doom-big-font-mode minor mode gets loaded again
therefore it causes the font to get increased.

Fix: #7845
This commit is contained in:
woochica 2024-07-06 00:58:18 +02:00 committed by GitHub
parent f44309cb63
commit 6e69b29084
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -177,4 +177,5 @@ Also resizees `doom-variable-pitch-font' and `doom-serif-font'."
(font-get (doom-normalize-font doom-big-font) :size))
t `((doom-font . ,doom-big-font)))
;; Resize the current font
(doom-adjust-font-size nil)
(doom-adjust-font-size (if doom-big-font-mode doom-big-font-increment))))