diff options
-rw-r--r-- | thogai.el | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 "") |