Commit bac4dbd1 authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(ido-copy-current-file-name): Use buffer-name if buffer-file-name is nil.

parent 2e42ee7b
......@@ -2895,7 +2895,8 @@ With \\[universal-argument], pop all element."
"Insert file name of current buffer.
If repeated, insert text from buffer instead."
(interactive "P")
(let* ((bfname (buffer-file-name ido-entry-buffer))
(let* ((bfname (or (buffer-file-name ido-entry-buffer)
(buffer-name ido-entry-buffer)))
(name (and bfname (file-name-nondirectory bfname))))
(when name
(setq ido-text-init
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment