Fixed Issue 49 (It is almost the same to Issue 48, and due to some accidentally removal of code when in revision 281)

This commit is contained in:
Zhang Chiyuan 2009-01-15 07:18:06 +00:00
parent c8b94d14c5
commit 37281e3a30

View File

@ -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)