branch: externals/company
commit c652030c382d770bae2f05977f54c8140f764e70
Author: Dmitry Gutov <dmi...@gutov.dev>
Commit: Dmitry Gutov <dmi...@gutov.dev>

    Don't chop off ]] after company-files completion
    
    Reported in https://github.com/company-mode/company-mode/discussions/1520
    
    The cost will probably be somewhat worse support for odd file names.
---
 company-files.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/company-files.el b/company-files.el
index 738809606b..64c8969459 100644
--- a/company-files.el
+++ b/company-files.el
@@ -123,7 +123,7 @@ The values should use the same format as 
`completion-ignored-extensions'."
 (defun company-files--prefix ()
   (let ((existing (company-files--grab-existing-name)))
     (when existing
-      (list existing (company-grab-suffix "[^ '\"\t\n\r/]*/?")))))
+      (list existing (company-grab-suffix "[^] '\"\t\n\r/]*/?")))))
 
 (defun company-file--keys-match-p (new old)
   (and (equal (cdr old) (cdr new))

Reply via email to