Skip to content

Commit 07f9599

Browse files
committed
Off by one windows size tweak
1 parent d4357fa commit 07f9599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fireplace.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@
182182

183183
(defun fireplace--update-locals-vars ()
184184
"Update `fireplace' local variables."
185-
(setq fireplace--bkgd-height (round (window-height (get-buffer-window fireplace-buffer-name)))
186-
fireplace--bkgd-width (round (window-width (get-buffer-window fireplace-buffer-name)))
185+
(setq fireplace--bkgd-height (- (floor (window-height (get-buffer-window fireplace-buffer-name))) 1)
186+
fireplace--bkgd-width (- (round (window-width (get-buffer-window fireplace-buffer-name))) 1)
187187
fireplace--flame-width (min fireplace--bkgd-height (round (/ fireplace--bkgd-width 2.5)))
188188
fireplace--flame-pos fireplace-flame-pos))
189189

0 commit comments

Comments
 (0)