mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Account for mid-line comments
This commit is contained in:
parent
c2fcbbeb72
commit
bd88adb621
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ define [
|
||||||
end = change.end
|
end = change.end
|
||||||
range = new Range(end.row, 0, end.row, end.column)
|
range = new Range(end.row, 0, end.row, end.column)
|
||||||
lineUpToCursor = @editor.getSession().getTextRange(range)
|
lineUpToCursor = @editor.getSession().getTextRange(range)
|
||||||
if lineUpToCursor.slice(0, 1) == '%'
|
if lineUpToCursor.match(/.*%.*/)
|
||||||
return
|
return
|
||||||
commandFragment = getLastCommandFragment(lineUpToCursor)
|
commandFragment = getLastCommandFragment(lineUpToCursor)
|
||||||
# Check that this change was made by us, not a collaborator
|
# Check that this change was made by us, not a collaborator
|
||||||
|
|
Loading…
Reference in a new issue