fix infinite loop when inserting snippet with self referencing tabstop
fixes #1802
This commit is contained in:
parent
42f274a42c
commit
4795261b94
1 changed files with 5 additions and 2 deletions
|
|
@ -329,8 +329,11 @@ var SnippetManager = function() {
|
|||
continue;
|
||||
var id = p.tabstopId;
|
||||
var i1 = tokens.indexOf(p, i + 1);
|
||||
if (expanding[id] == p) {
|
||||
expanding[id] = null;
|
||||
if (expanding[id]) {
|
||||
// if reached closing bracket clear expanding state
|
||||
if (expanding[id] === p)
|
||||
expanding[id] = null;
|
||||
// otherwise just ignore recursive tabstop
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue