diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/km-projectile.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/km-projectile.el b/lisp/km-projectile.el index 9107af7..f37de22 100644 --- a/lisp/km-projectile.el +++ b/lisp/km-projectile.el @@ -77,7 +77,8 @@ names separated by a space." (org-element-property :path el)) (and (derived-mode-p 'dired-mode) (dired-get-marked-files 'nodir nil)) - (thing-at-point 'filename)))) + (--when-let (thing-at-point 'filename) + (and (file-exists-p it) it))))) (when fname (mapconcat `(lambda (f) (file-relative-name f ,(projectile-project-root))) |