mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 19:02:13 +07:00
don't update mouse cursor for editor component unnecessarily (with multiple carets this introduces a notable performance penalty)
(for IDEA-135620)
This commit is contained in:
@@ -2031,7 +2031,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
|
||||
restoreCaretRelativePosition();
|
||||
}
|
||||
|
||||
if (EMPTY_CURSOR != null && !myIsViewer) {
|
||||
if (!myIsViewer && EMPTY_CURSOR != null && EMPTY_CURSOR != myEditorComponent.getCursor()) {
|
||||
myEditorComponent.setCursor(EMPTY_CURSOR);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user