From 37281e3a307b09f80d609a48d1cc6ef53d649e79 Mon Sep 17 00:00:00 2001 From: Zhang Chiyuan Date: Thu, 15 Jan 2009 07:18:06 +0000 Subject: [PATCH] Fixed Issue 49 (It is almost the same to Issue 48, and due to some accidentally removal of code when in revision 281) --- yasnippet.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yasnippet.el b/yasnippet.el index 2d154ac..9d43558 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -650,7 +650,7 @@ for each field." (goto-char start) (insert (yas/calculate-field-value field text)) (if (eq length 0) - (move-overlay overlay start (+ start (length text)))) + (move-overlay overlay start (point))) (delete-char length)))) (defun yas/expand-snippet (start end template)