mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
EA-32094 don't move caret to rotten offset when inserting a PsiTypeLookupItem
This commit is contained in:
@@ -78,6 +78,9 @@ public class PsiTypeLookupItem extends LookupItem {
|
||||
PostprocessReformattingAspect.getInstance(context.getProject()).doPostponedFormatting();
|
||||
|
||||
int tail = context.getTailOffset();
|
||||
if (tail <= 0) {
|
||||
return;
|
||||
}
|
||||
String braces = StringUtil.repeat("[]", getBracketsCount());
|
||||
Editor editor = context.getEditor();
|
||||
if (!braces.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user