[Bugfix] Fix variable name in gpolonkai/save-killed-buffer-filename

This commit is contained in:
Gergely Polonkai 2018-11-30 10:42:12 +01:00
parent cf216711e6
commit 518a1a7ac6

View File

@ -498,7 +498,7 @@ Used by `gpolonkai/save-killed-buffer-filename' and `gpolonkai/undo-buffer-kill'
"Save the filename of the killed buffer in `gpolonkai/last-killed-buffer-file-name'." "Save the filename of the killed buffer in `gpolonkai/last-killed-buffer-file-name'."
(let ((filename (buffer-file-name))) (let ((filename (buffer-file-name)))
(unless filename (unless filename
(setq gpolonkai/last-killed-bufer-file-name (buffer-file-name))))) (setq gpolonkai/last-killed-buffer-file-name (buffer-file-name)))))
(add-hook 'kill-buffer-hook 'gpolonkai/save-killed-buffer-filename) (add-hook 'kill-buffer-hook 'gpolonkai/save-killed-buffer-filename)