Don't trigger autocomplete if we're on a comment line.

This commit is contained in:
Shane Kilkelly
2017-06-29 14:42:08 +01:00
parent b73b78e570
commit db80f8ca1c
@@ -121,6 +121,8 @@ define [
end = change.end
range = new Range(end.row, 0, end.row, end.column)
lineUpToCursor = @editor.getSession().getTextRange(range)
if lineUpToCursor.slice(0, 1) == '%'
return
commandFragment = getLastCommandFragment(lineUpToCursor)
# Check that this change was made by us, not a collaborator
# (Cursor is still one place behind)