mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-201882 Scrolling position jumps on completion
regression after commit 2af28891 (speed up opening of editor containing a lot of carets)
This commit is contained in:
@@ -1566,7 +1566,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
|
||||
return;
|
||||
}
|
||||
|
||||
if (getCaretModel().getOffset() < e.getOffset() || getCaretModel().getOffset() > e.getOffset() + e.getNewLength()) {
|
||||
if (getCaretModel().getOffset() < e.getOffset() || getCaretModel().getOffset() > e.getOffset() + e.getOldLength()) {
|
||||
saveCaretRelativePosition();
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user