avoid scrolling to a non-primary caret on completion

This commit is contained in:
Dmitry Batrak
2014-12-22 11:47:00 +03:00
parent 3664362a42
commit afe5900c2d
@@ -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);