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:
Dmitry Batrak
2016-10-24 14:55:04 +03:00
parent 8917ba2e4c
commit 421ec22f83
@@ -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);
}
}