core/core-spacemacs-buffer.el: fix error for using `set' on a lexical varaible

This commit is contained in:
Lin Sun 2022-10-19 00:00:53 +00:00 committed by Maxi Wolff
parent 9541a8e0a8
commit e3895f2168
1 changed files with 1 additions and 1 deletions

View File

@ -1535,7 +1535,7 @@ If a prefix argument is given, switch to it in an other, possibly new window."
(page-break-lines-mode)
(save-excursion
(when (> (buffer-size) 0)
(set 'save-line (line-number-at-pos))
(setq save-line (line-number-at-pos))
(let ((inhibit-read-only t))
(erase-buffer)))
(spacemacs-buffer/set-mode-line "")