update codemirror plugin files
This commit is contained in:
5
plugins/codemirror/addon/edit/closetag.js
vendored
5
plugins/codemirror/addon/edit/closetag.js
vendored
@@ -128,9 +128,10 @@
|
||||
replacement = head + "style";
|
||||
} else {
|
||||
var context = inner.mode.xmlCurrentContext && inner.mode.xmlCurrentContext(state)
|
||||
if (!context || (context.length && closingTagExists(cm, context, context[context.length - 1], pos)))
|
||||
var top = context.length ? context[context.length - 1] : ""
|
||||
if (!context || (context.length && closingTagExists(cm, context, top, pos)))
|
||||
return CodeMirror.Pass;
|
||||
replacement = head + context[context.length - 1]
|
||||
replacement = head + top
|
||||
}
|
||||
if (cm.getLine(pos.line).charAt(tok.end) != ">") replacement += ">";
|
||||
replacements[i] = replacement;
|
||||
|
||||
Reference in New Issue
Block a user