summaryrefslogtreecommitdiff
path: root/cape.el
diff options
context:
space:
mode:
Diffstat (limited to 'cape.el')
-rw-r--r--cape.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/cape.el b/cape.el
index 795b2c0..ae1af7b 100644
--- a/cape.el
+++ b/cape.el
@@ -438,9 +438,7 @@ If INTERACTIVE is nil the function acts like a Capf."
:company-location
,(lambda (file)
(let* ((str (buffer-substring-no-properties beg (point)))
- (pre (condition-case nil
- (car (completion-boundaries str table nil ""))
- (t 0)))
+ (pre (car (completion-boundaries str table nil "")))
(file (file-name-concat (substring str 0 pre) file)))
(and (file-exists-p file) (list file))))
,@(when (or prefix (string-match-p "./" file))