mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix small mistakes in compare text logic
Existing text should be compared with expected text (and not original text) Review ID: IDEA-CR-40066
This commit is contained in:
@@ -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++
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user