mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
avoid scrolling to a non-primary caret on completion
This commit is contained in:
+1
-1
@@ -762,7 +762,7 @@ public class CodeCompletionHandlerBase {
|
||||
if (!editor.getCaretModel().supportsMultipleCarets()) { // done later, outside of this method
|
||||
context.stopWatching();
|
||||
}
|
||||
editor.getScrollingModel().scrollToCaret(ScrollType.RELATIVE);
|
||||
EditorModificationUtil.scrollToCaret(editor);
|
||||
}
|
||||
});
|
||||
update.addSparedChars(indicator, item, context, completionChar);
|
||||
|
||||
Reference in New Issue
Block a user