mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix reparse when a text was just appended to the document end
This commit is contained in:
@@ -114,7 +114,7 @@ public abstract class DocumentCommitProcessor {
|
||||
final String oldPsiText = myTreeElementBeingReparsedSoItWontBeCollected.getText();
|
||||
int commonPrefixLength = StringUtil.commonPrefixLength(oldPsiText, chars);
|
||||
final TextRange changedPsiRange;
|
||||
if (commonPrefixLength == chars.length()) {
|
||||
if (commonPrefixLength == chars.length() && chars.length() == oldPsiText.length()) {
|
||||
changedPsiRange = getChangedPsiRange(file, 0, 0, chars.length());
|
||||
} else {
|
||||
int commonSuffixLength = StringUtil.commonSuffixLength(oldPsiText, chars);
|
||||
|
||||
Reference in New Issue
Block a user