mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
when completing by tab, be prepared to invalid id end offset (EA-45428 - IAE: DocumentImpl.deleteString)
This commit is contained in:
+1
-1
@@ -691,7 +691,7 @@ public class CodeCompletionHandlerBase {
|
||||
ApplicationManager.getApplication().runWriteAction(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (caretOffset != idEndOffset && completionChar == Lookup.REPLACE_SELECT_CHAR) {
|
||||
if (caretOffset < idEndOffset && completionChar == Lookup.REPLACE_SELECT_CHAR) {
|
||||
editor.getDocument().deleteString(caretOffset, idEndOffset);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user