mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
fix use of context helper in onChange
This commit is contained in:
parent
708afedeb4
commit
8a612df009
1 changed files with 2 additions and 2 deletions
|
@ -142,8 +142,8 @@ define [
|
|||
onChange: (change) ->
|
||||
cursorPosition = @editor.getCursorPosition()
|
||||
end = change.end
|
||||
context = Helpers.getContext(editor, end)
|
||||
{lineUpToCursor, commandFragment, lineBeyondCursor, needsClosingBrace} = context
|
||||
context = Helpers.getContext(@editor, end)
|
||||
{lineUpToCursor, commandFragment, commandName, lineBeyondCursor, needsClosingBrace} = context
|
||||
if lineUpToCursor.match(/.*%.*/)
|
||||
return
|
||||
lastCharIsBackslash = lineUpToCursor.slice(-1) == "\\"
|
||||
|
|
Loading…
Reference in a new issue