bug fix: infinite recursion when several snippets overlaps.

This commit is contained in:
Zhang Chiyuan 2008-03-27 08:25:37 +00:00
parent 77eeb41e18
commit 72be6f0fc2
2 changed files with 8 additions and 1 deletions

View File

@ -6,6 +6,11 @@ ChangeLog
:Contact: pluskid@gmail.com
:Date: 2008-03-22
0.4.5
==================
* Bug fix: l-safe-expr-p: Lisp nesting exceeds ``max-lisp-eval-depth`` error when several (more than two) snippets overlaps. Thanks sunwaybupt@newsmth for reporting this bug.
0.4.4 / 2008-03-24
==================

View File

@ -1134,10 +1134,12 @@ when the condition evaluated to non-nil."
(keymap (overlay-get overlay 'keymap))
(command nil))
(overlay-put overlay 'keymap nil)
(overlay-put overlay 'yas/snippet-reference nil)
(setq command (key-binding yas/next-field-key))
(when (commandp command)
(call-interactively command))
(overlay-put overlay 'keymap keymap))))
(overlay-put overlay 'keymap keymap)
(overlay-put overlay 'yas/snippet-reference snippet))))
(when (= (point)
(overlay-start
(yas/field-overlay