[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/consult bfcb6c0deb 4/4: Use file-directory-p
From: |
ELPA Syncer |
Subject: |
[elpa] externals/consult bfcb6c0deb 4/4: Use file-directory-p |
Date: |
Thu, 1 Sep 2022 14:57:27 -0400 (EDT) |
branch: externals/consult
commit bfcb6c0deb3fac558fe9f5aee45590d51b18d226
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Use file-directory-p
---
consult.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/consult.el b/consult.el
index 5d443eeb5e..8dc881f528 100644
--- a/consult.el
+++ b/consult.el
@@ -1203,7 +1203,7 @@ ORIG is the original function, HOOKS the arguments."
;; one fully initialized. In this case we prefer the fully
;; initialized buffer. For directories `get-file-buffer' returns
nil,
;; therefore we have to special case Dired.
- (if (and (string-suffix-p "/" name) (fboundp
'dired-find-buffer-nocreate))
+ (if (and (fboundp 'dired-find-buffer-nocreate) (file-directory-p
name))
(dired-find-buffer-nocreate name)
(get-file-buffer name))
;; Find existing previewed buffer. Previewed buffers are not fully