diff --git a/platform/lang-impl/src/com/intellij/internal/retype/RetypeSession.kt b/platform/lang-impl/src/com/intellij/internal/retype/RetypeSession.kt index 8e481af2e0a8..de68a2021826 100644 --- a/platform/lang-impl/src/com/intellij/internal/retype/RetypeSession.kt +++ b/platform/lang-impl/src/com/intellij/internal/retype/RetypeSession.kt @@ -196,7 +196,7 @@ class RetypeSession( while (i < text.length && j < expectedText.length) { while (i < text.lastIndex && isSkipped(text[i])) i++ while (j < expectedText.lastIndex && isSkipped(expectedText[j])) j++ - if (text[i] != originalText[j]) return false + if (text[i] != expectedText[j]) return false i++ j++ }