mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-114811 Mouse drag over left gutter below the last line: IOOBE at SegmentArray.getSegmentStart()
This commit is contained in:
@@ -4095,7 +4095,8 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
|
||||
// further dragging (if any).
|
||||
if (myDragOnGutterSelectionStartLine >= 0) {
|
||||
mySelectionModel.removeSelection();
|
||||
myCaretModel.moveToOffset(myDocument.getLineStartOffset(myDragOnGutterSelectionStartLine));
|
||||
myCaretModel.moveToOffset(myDragOnGutterSelectionStartLine < myDocument.getLineCount()
|
||||
? myDocument.getLineStartOffset(myDragOnGutterSelectionStartLine) : myDocument.getTextLength());
|
||||
}
|
||||
myDragOnGutterSelectionStartLine = - 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user