* spacemacs-defaults: fix err msg when copy file path in a dired buffer
This commit is contained in:
parent
df39c561bb
commit
ab5911fabd
|
@ -779,7 +779,8 @@ ones created by `magit' and `dired'."
|
|||
(defun spacemacs/copy-file-name ()
|
||||
"Copy and show the file name of the current buffer."
|
||||
(interactive)
|
||||
(if-let (file-name (file-name-nondirectory (spacemacs--file-path)))
|
||||
(if-let* ((file-path (spacemacs--file-path))
|
||||
(file-name (file-name-nondirectory file-path)))
|
||||
(progn
|
||||
(kill-new file-name)
|
||||
(message "%s" file-name))
|
||||
|
|
Loading…
Reference in New Issue