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

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

[elpa] master 4f0d7a1 131/173: Kill trailing / on directories completion


From: Dmitry Gutov
Subject: [elpa] master 4f0d7a1 131/173: Kill trailing / on directories completion
Date: Thu, 23 Jun 2016 00:28:45 +0000 (UTC)

branch: master
commit 4f0d7a1477bb1f49f344069328d511e9ad2b85a8
Author: Vitalie Spinu <address@hidden>
Commit: Vitalie Spinu <address@hidden>

    Kill trailing / on directories completion
---
 company-files.el |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/company-files.el b/company-files.el
index c04985c..c19d3d6 100644
--- a/company-files.el
+++ b/company-files.el
@@ -113,6 +113,8 @@ File paths with spaces are only supported inside strings."
     (candidates (company-files--complete arg))
     (location (cons (dired-noselect
                      (file-name-directory (directory-file-name arg))) 1))
+    (post-completion (when (company-files--trailing-slash-p arg)
+                       (delete-char -1)))
     (sorted t)
     (no-cache t)))
 



reply via email to

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