mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
speed up opening of editor containing a lot of carets
This commit is contained in:
@@ -909,9 +909,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
|
||||
myCaretModel.updateVisualPosition();
|
||||
|
||||
// make sure carets won't appear at invalid positions (e.g. on Tab width change)
|
||||
for (Caret caret : getCaretModel().getAllCarets()) {
|
||||
caret.moveToOffset(caret.getOffset());
|
||||
}
|
||||
getCaretModel().doWithCaretMerging(() -> myCaretModel.getAllCarets().forEach(caret -> caret.moveToOffset(caret.getOffset())));
|
||||
|
||||
if (myVirtualFile != null && myProject != null) {
|
||||
final EditorNotifications editorNotifications = EditorNotifications.getInstance(myProject);
|
||||
|
||||
Reference in New Issue
Block a user