branch: externals/tempel
commit cb7c4c294adfbcf1cbc3cfe985f5f12685785ec2
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@daniel-mendler.de>

    Fix tempel-complete (Fix #49)
---
 tempel.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tempel.el b/tempel.el
index 6e5e6d6314..eeda56042c 100644
--- a/tempel.el
+++ b/tempel.el
@@ -630,10 +630,10 @@ If INTERACTIVE is nil the function acts like a capf."
         (when (and tempel-trigger-prefix (not (tempel--prefix-bounds)))
           (insert tempel-trigger-prefix))
         (tempel--interactive #'tempel-complete))
-    (when-let (templates (tempel--templates))
-      (let* ((region (tempel--region))
-             (bounds (or (and (not region) (tempel--prefix-bounds))
-                         (and (not tempel-trigger-prefix) (cons (point) 
(point))))))
+    (let ((region (tempel--region)))
+      (when-let ((templates (tempel--templates))
+                 (bounds (or (and (not region) (tempel--prefix-bounds))
+                             (and (not tempel-trigger-prefix) (cons (point) 
(point))))))
         (list (car bounds) (cdr bounds)
               (tempel--completion-table templates)
               :exclusive 'no

Reply via email to