about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--thogai.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/thogai.el b/thogai.el
index cb16132..bc69eb7 100644
--- a/thogai.el
+++ b/thogai.el
@@ -211,7 +211,10 @@ Insert LITERAL-TRANSLATION at point, respecting
                           (concat (downcase (substring str 0 1))
                                   (substring str 1)))
                       'identity))
-                   literal-translation)))
+                   literal-translation))
+  ;; Reset `thogai-attach-next' and `thogai-glue'.
+  (setq thogai-attach-next nil
+        thogai-glue nil))
 
 (defun thogai-insert-translation (translation &optional subtranslation)
   "Insert TRANSLATION at point.
@@ -270,9 +273,6 @@ callers should never pass non-nil SUBTRANSLATION."
        (_
         (unless subtranslation
           (thogai-insert-space))
-        ;; Reset `thogai-attach-next' and `thogai-glue'.
-        (setq thogai-attach-next nil
-              thogai-glue nil)
         (thogai-insert-literal translation)))
      ;; Recurse for rest of translation.
      (unless (string= rest-of-translation "")