mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user