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:
Alex Plate
2018-11-20 13:44:05 +03:00
parent b6927d4d0c
commit fb07cbcb4f
@@ -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++
}