mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-15 05:53:04 +00:00
bug fix: infinite recursion when several snippets overlaps.
This commit is contained in:
parent
77eeb41e18
commit
72be6f0fc2
@ -6,6 +6,11 @@ ChangeLog
|
|||||||
:Contact: pluskid@gmail.com
|
:Contact: pluskid@gmail.com
|
||||||
:Date: 2008-03-22
|
: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
|
0.4.4 / 2008-03-24
|
||||||
==================
|
==================
|
||||||
|
|
||||||
|
@ -1134,10 +1134,12 @@ when the condition evaluated to non-nil."
|
|||||||
(keymap (overlay-get overlay 'keymap))
|
(keymap (overlay-get overlay 'keymap))
|
||||||
(command nil))
|
(command nil))
|
||||||
(overlay-put overlay 'keymap nil)
|
(overlay-put overlay 'keymap nil)
|
||||||
|
(overlay-put overlay 'yas/snippet-reference nil)
|
||||||
(setq command (key-binding yas/next-field-key))
|
(setq command (key-binding yas/next-field-key))
|
||||||
(when (commandp command)
|
(when (commandp command)
|
||||||
(call-interactively command))
|
(call-interactively command))
|
||||||
(overlay-put overlay 'keymap keymap))))
|
(overlay-put overlay 'keymap keymap)
|
||||||
|
(overlay-put overlay 'yas/snippet-reference snippet))))
|
||||||
(when (= (point)
|
(when (= (point)
|
||||||
(overlay-start
|
(overlay-start
|
||||||
(yas/field-overlay
|
(yas/field-overlay
|
||||||
|
Loading…
x
Reference in New Issue
Block a user