mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-80056 Column selection mode improvement
small API change, as per review
This commit is contained in:
@@ -442,7 +442,7 @@ public abstract class CodeInsightTestCase extends PsiTestCase {
|
||||
caretPositions.add(pos);
|
||||
selections.add(caret.selection == null ? null : caret.selection);
|
||||
}
|
||||
editor.getCaretModel().setCarets(caretPositions, selections);
|
||||
editor.getCaretModel().setCaretsAndSelections(caretPositions, selections);
|
||||
}
|
||||
else {
|
||||
assert caretState.carets.size() == 1 : "Multiple carets are not supported by the model";
|
||||
|
||||
@@ -65,7 +65,7 @@ public class EditorInfo {
|
||||
caretPositions.add(pos);
|
||||
selections.add(caret.selection == null ? null : caret.selection);
|
||||
}
|
||||
editor.getCaretModel().setCarets(caretPositions, selections);
|
||||
editor.getCaretModel().setCaretsAndSelections(caretPositions, selections);
|
||||
}
|
||||
else {
|
||||
assert caretState.carets.size() == 1 : "Multiple carets are not supported by the model";
|
||||
|
||||
Reference in New Issue
Block a user