branch: externals/cape
commit 6c9238218dfaf1a6d7e1b1a12ac34c82641b3d34
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
Remove unnecessary condition-case
---
cape.el | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/cape.el b/cape.el
index 795b2c007f..ae1af7b77f 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))