[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm bb063b47a4 2/2: Be consistent with the return value o
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm bb063b47a4 2/2: Be consistent with the return value of helm-common-dir-1 |
Date: |
Thu, 25 Jul 2024 10:00:38 -0400 (EDT) |
branch: elpa/helm
commit bb063b47a456dd4a5d2c68dda390c07b6a877c44
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Be consistent with the return value of helm-common-dir-1
when giving a single file in FILES.
---
helm-lib.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/helm-lib.el b/helm-lib.el
index fd809d4074..8431b26eb0 100644
--- a/helm-lib.el
+++ b/helm-lib.el
@@ -1909,7 +1909,8 @@ Take same args as `directory-files'."
(nconc (list (directory-file-name base))
(helm-common-dir-1 others))
(list (and base (directory-file-name base)))))
- (and files (list (file-name-directory (car files))))))
+ (and files (list (directory-file-name
+ (file-name-directory (car files)))))))
(defun helm-common-dir (files)
"Return the longest common directory path of FILES list.