mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
preview () at the end of the file
This commit is contained in:
@@ -125,7 +125,7 @@ public class CompletionPreview {
|
||||
Editor editor = lookup.getEditor();
|
||||
CharSequence seq = editor.getDocument().getCharsSequence();
|
||||
int caret = editor.getCaretModel().getOffset();
|
||||
if (caret < seq.length() && seq.charAt(caret) != '(') {
|
||||
if (caret >= seq.length() || seq.charAt(caret) != '(') {
|
||||
text += "()";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user