mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
autopopup when typing over a selection
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ public class CompletionAutoPopupHandler extends TypedHandlerDelegate {
|
||||
}
|
||||
|
||||
final CharSequence text = editor.getDocument().getCharsSequence();
|
||||
final int offset = editor.getCaretModel().getOffset();
|
||||
final int offset = editor.getSelectionModel().hasSelection() ? editor.getSelectionModel().getSelectionEnd() : editor.getCaretModel().getOffset();
|
||||
if (text.length() > offset && Character.isUnicodeIdentifierPart(text.charAt(offset))) {
|
||||
return Result.CONTINUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user