branch: externals/tempel
commit 632a4478ed4ce5a77f3bf78a9551a003e30f6c1c
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
Revert "tempel--synchronize-fields: Bugfix; Handle form evaluating to nil
(Fix #139)"
This reverts commit ddb76125dc8eb981f958b1ac5c68f99687fc79d0.
Forms must evaluate to strings. Otherwise they are interpreted as nested
templates since 52ab0b5b041dd7f1ead74f736403ab206396ba60.
---
tempel.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tempel.el b/tempel.el
index 0752b1d249..9354d2d8cd 100644
--- a/tempel.el
+++ b/tempel.el
@@ -273,7 +273,7 @@ BEG and END are the boundaries of the modification."
(save-excursion
(goto-char (overlay-start ov))
(when-let* ((str (if-let* ((form (overlay-get ov 'tempel--form)))
- (or (eval form (cdr st)) "")
+ (eval form (cdr st))
(when-let* ((name (overlay-get ov 'tempel--name)))
(alist-get name (cdr st))))))
(tempel--sync-replace (overlay-start ov)