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:
parent
f44309cb63
commit
6e69b29084
1 changed files with 1 additions and 0 deletions
|
@ -177,4 +177,5 @@ Also resizees `doom-variable-pitch-font' and `doom-serif-font'."
|
||||||
(font-get (doom-normalize-font doom-big-font) :size))
|
(font-get (doom-normalize-font doom-big-font) :size))
|
||||||
t `((doom-font . ,doom-big-font)))
|
t `((doom-font . ,doom-big-font)))
|
||||||
;; Resize the current font
|
;; Resize the current font
|
||||||
|
(doom-adjust-font-size nil)
|
||||||
(doom-adjust-font-size (if doom-big-font-mode doom-big-font-increment))))
|
(doom-adjust-font-size (if doom-big-font-mode doom-big-font-increment))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue