mirror of
https://github.com/vale981/apheleia
synced 2025-03-04 17:11:40 -05:00
[#52] Fix handling of non-file buffers
This commit is contained in:
parent
4da2898ffd
commit
c073299a56
1 changed files with 8 additions and 1 deletions
|
@ -598,7 +598,14 @@ sequence unless it's first in the sequence"))
|
|||
(setq stdin nil))
|
||||
(if (memq arg '(file filepath))
|
||||
(prog1 file-name
|
||||
(when (buffer-modified-p)
|
||||
;; If `buffer-file-name' is
|
||||
;; nil then there is no
|
||||
;; backing file, so
|
||||
;; `buffer-modified-p' should
|
||||
;; be ignored (it always
|
||||
;; returns non-nil).
|
||||
(when (and (buffer-modified-p)
|
||||
buffer-file-name)
|
||||
(cl-return)))
|
||||
arg))
|
||||
command))))
|
||||
|
|
Loading…
Add table
Reference in a new issue