summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2025-12-20 16:21:29 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2025-12-20 16:21:29 +0100
commit6c9238218dfaf1a6d7e1b1a12ac34c82641b3d34 (patch)
tree53dbf10fb07988ff4a71ef001d31de699f18b2b1
parent088a2bf4a5f9b5f2e1a3ab596ac83f4d69ce3b22 (diff)
Remove unnecessary condition-case
-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))