mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-12 06:36:44 +00:00
Only load labels from current doc if change is local
This commit is contained in:
parent
f29320dd93
commit
51881dbbcc
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ define [
|
|||
lineUpToCursor = @editor.getSession().getTextRange(range)
|
||||
commandFragment = getLastCommandFragment(lineUpToCursor)
|
||||
if (
|
||||
!change.remote and
|
||||
change.action in ['remove', 'insert'] and
|
||||
((_.any(change.lines, (line) -> line.match(/\\label\{[^\}\n\\]{0,80}\}/))) or
|
||||
(commandFragment?.length > 2 and commandFragment.slice(0,7) == '\\label{'))
|
||||
|
|
Loading…
Add table
Reference in a new issue