mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-161586 Intermittent Intellij hangs with 2016.2.4 on Linux
safe fix, that should improve the situation - hangs shouldn't happen repeatedly now, only occasionally
This commit is contained in:
@@ -1485,9 +1485,11 @@ public class CaretImpl extends UserDataHolderBase implements Caret, Dumpable {
|
||||
InlayModelImpl inlayModel = myEditor.getInlayModel();
|
||||
int startOffset = marker.getStartOffset();
|
||||
int endOffset = marker.getEndOffset();
|
||||
if (!myEditor.offsetToVisualPosition(startOffset, true, false).equals(myRangeMarkerStartPosition) &&
|
||||
if ((myRangeMarkerStartPosition == null ||
|
||||
!myEditor.offsetToVisualPosition(startOffset, true, false).equals(myRangeMarkerStartPosition)) &&
|
||||
model.getSoftWrap(startOffset) == null && !inlayModel.hasInlineElementAt(startOffset) ||
|
||||
!myEditor.offsetToVisualPosition(endOffset, false, true).equals(myRangeMarkerEndPosition)
|
||||
(myRangeMarkerEndPosition == null ||
|
||||
!myEditor.offsetToVisualPosition(endOffset, false, true).equals(myRangeMarkerEndPosition))
|
||||
&& model.getSoftWrap(endOffset) == null && !inlayModel.hasInlineElementAt(endOffset)) {
|
||||
myRangeMarkerStartPosition = null;
|
||||
myRangeMarkerEndPosition = null;
|
||||
|
||||
Reference in New Issue
Block a user