branch: externals/tempel
commit 2fc756c54841de09ad97f5fab2ad31987009c458
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
Formatting
---
tempel.el | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/tempel.el b/tempel.el
index c3c6bc0156..3e19c4ebbe 100644
--- a/tempel.el
+++ b/tempel.el
@@ -209,13 +209,13 @@ TEMPLATES is the list of templates."
"Exit function for completion for template NAME and STATUS.
TEMPLATES is the list of templates.
REGION are the current region bounds."
- (unless (eq status 'exact)
- (when-let ((sym (intern-soft name))
- (template (alist-get sym templates)))
- (tempel--delete-word name)
- (when tempel-trigger-prefix
- (tempel--delete-word tempel-trigger-prefix))
- (tempel--insert template region))))
+ (when-let (((not (eq status 'exact)))
+ (sym (intern-soft name))
+ (template (alist-get sym templates)))
+ (tempel--delete-word name)
+ (when tempel-trigger-prefix
+ (tempel--delete-word tempel-trigger-prefix))
+ (tempel--insert template region)))
(defun tempel--range-modified (ov &rest _)
"Range overlay OV modified."