mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-99600 Exception: Unexpected caret move request
This commit is contained in:
@@ -622,7 +622,7 @@ public class CaretModelImpl implements CaretModel, PrioritizedDocumentListener,
|
||||
|
||||
@Override
|
||||
public boolean isUpToDate() {
|
||||
return !myIsInUpdate;
|
||||
return !myIsInUpdate && !myReportCaretMoves;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -395,7 +395,7 @@ public class FoldingModelImpl implements FoldingModelEx, PrioritizedDocumentList
|
||||
|
||||
boolean oldCaretPositionSaved = myCaretPositionSaved;
|
||||
|
||||
if (moveCaretFromCollapsedRegion) {
|
||||
if (moveCaretFromCollapsedRegion && myEditor.getCaretModel().isUpToDate()) {
|
||||
if (offsetToUse >= 0) {
|
||||
myEditor.getCaretModel().moveToOffset(offsetToUse);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user