mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Don't trigger autocomplete if we're on a comment line.
This commit is contained in:
+2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user