Merge pull request #2158 from overleaf/pr-fix-autocomplete-opens-for-collaborators

Ignore remote changes for autocompletion purposes.

GitOrigin-RevId: df0541f1f7cb8527263988f60ca5b80510f8971e
This commit is contained in:
Simon Detheridge 2019-09-25 15:28:02 +01:00 committed by sharelatex
parent 111d22d260
commit e5e28c7fb1

View file

@ -243,6 +243,7 @@ define([
// NOTE: this is also the case when a user backspaces over a highlighted // NOTE: this is also the case when a user backspaces over a highlighted
// region // region
if ( if (
!change.remote &&
change.action === 'insert' && change.action === 'insert' &&
end.row === cursorPosition.row && end.row === cursorPosition.row &&
end.column === cursorPosition.column + 1 end.column === cursorPosition.column + 1