From 4f0d7a1477bb1f49f344069328d511e9ad2b85a8 Mon Sep 17 00:00:00 2001 From: Vitalie Spinu Date: Mon, 1 Feb 2016 22:29:45 +0100 Subject: [PATCH] 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 c04985cb5..c19d3d6cb 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))) -- 2.39.2