diff options
| -rw-r--r-- | README.org | 2 | ||||
| -rw-r--r-- | cape.el | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -41,7 +41,7 @@ backends into Capfs and merge multiple Capfs into a Super-Capf! * ~cape-ispell~: Complete word from Ispell dictionary * ~cape-dict~: Complete word from dictionary file * ~cape-line~: Complete entire line from file -* ~cape-tex~: Complete unicode char from TeX command, e.g. ~\hbar~, +* ~cape-tex~: Complete unicode char from TeX command, e.g. ~\hbar~. * ~cape-sgml~: Complete unicode char from Sgml entity, e.g., ~&alpha~. * Configuration @@ -412,7 +412,8 @@ If INTERACTIVE is nil the function acts like a capf." (when (or (not cape-file-directory-must-exist) (and (string-match-p "/" file) (file-exists-p (file-name-directory file)))) `(,(car bounds) ,(cdr bounds) ,#'read-file-name-internal - :company-prefix-length ,(and (not (equal file "/")) (string-suffix-p "/" file)) + ,@(and (not (equal file "/")) (string-suffix-p "/" file) + '(:company-prefix-length t)) :exclusive no ,@cape--file-properties))))) ;;;;; cape-symbol |
