emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/cape 17f7849ce6 2/3: Simplify cape-file


From: ELPA Syncer
Subject: [elpa] externals/cape 17f7849ce6 2/3: Simplify cape-file
Date: Mon, 6 Jun 2022 07:57:20 -0400 (EDT)

branch: externals/cape
commit 17f7849ce67f34d96d0c5e7fd42c5ea4c332a0d8
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Simplify cape-file
---
 cape.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cape.el b/cape.el
index d017b643ff..ccf1780468 100644
--- a/cape.el
+++ b/cape.el
@@ -257,7 +257,7 @@ If INTERACTIVE is nil the function acts like a Capf."
                      (file-exists-p (file-name-directory file))))
         `(,(car bounds) ,(cdr bounds)
           ,(cape--nonessential-table #'read-file-name-internal)
-          ,@(when (or org (and (not (equal file "/")) (string-suffix-p "/" 
file)))
+          ,@(when (or org (string-match-p "./\\'" file))
               '(:company-prefix-length t))
           ,@cape--file-properties)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]