Fix tag completion bug.

This commit is contained in:
William Candillon 2013-02-06 13:17:03 +01:00 committed by nightwing
commit 5c30d861fa

View file

@ -67,7 +67,8 @@ function hasType(token, type) {
} else {
atCursor = true;
}
if (!token || !hasType(token, 'meta.tag') || iterator.stepBackward().value.match('/')) {
var previous = iterator.stepBackward();
if (!token || !hasType(token, 'meta.tag') || (previous !== null && previous.value.match('/'))) {
return
}
var tag = token.value.substring(1);