+evil:file-move: don't error if save-place-mode is disabled
This commit is contained in:
parent
e1518e2d27
commit
30044533a3
1 changed files with 2 additions and 1 deletions
|
@ -54,7 +54,8 @@
|
|||
(rename-buffer (file-name-nondirectory new-path))
|
||||
(set-visited-file-name new-path)
|
||||
(set-buffer-modified-p nil)
|
||||
(save-place-forget-unreadable-files)
|
||||
(when (bound-and-true-p save-place-mode)
|
||||
(save-place-forget-unreadable-files))
|
||||
(setq doom--spaceline-file-path nil)
|
||||
(message "File '%s' successfully renamed to '%s'"
|
||||
short-old-path short-new-path))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue