Skip to content

Commit 238710a

Browse files
Fix wrong-number-of-arguments error
`fireplace--update-locals-vars' is also called with an (ignored) FRAME parameter when added to `window-size-change-functions'. Fixes #22.
1 parent 7197630 commit 238710a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fireplace.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
(transient-mark-mode nil)
181181
(buffer-disable-undo))
182182

183-
(defun fireplace--update-locals-vars ()
183+
(defun fireplace--update-locals-vars (&optional frame)
184184
"Update `fireplace' local variables."
185185
(setq fireplace--bkgd-height (- (floor (window-height (get-buffer-window fireplace-buffer-name))) 1)
186186
fireplace--bkgd-width (- (round (window-width (get-buffer-window fireplace-buffer-name))) 1)

0 commit comments

Comments
 (0)