IDEA-57637 'Commit Changes' editor: Fix text selection processing when cursor moved to the bottom of editor

Text selection by mouse is made visual positions-oriented (used to be logical positions-oriented that caused problems with soft-wrapped lines)
This commit is contained in:
Denis Zhdanov
2010-08-16 13:13:46 +04:00
parent 34055e8b7f
commit 7b6acf763f
@@ -2942,7 +2942,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
}
if (lineNumber >= totalLines) {
moveCaretToScreenPos(x, logicalLineToY(totalLines - 1));
moveCaretToScreenPos(x, visibleLineNumberToYPosition(getVisibleLineCount() - 1));
return;
}