You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The root cause is that, while processing the imperfect match, the reference text and actual text (text1 and text2) offsets are inaccurate after the first deletion ("a") and so the index calculation gets the wrong result for the removal of the second "ing". It ends up removing "ng". I could not fix it while still using index2 as both the offset into the actual string being edited ("text") and into the unedited input ("text2") so I introduced an offset between the two.
A fix is here HeliosVirtualCockpit@0f5aa41 but I won't make a PR because I don't have code for the other languages and I have basically no test coverage.
The text was updated successfully, but these errors were encountered:
Here is an example that fails:
The root cause is that, while processing the imperfect match, the reference text and actual text (text1 and text2) offsets are inaccurate after the first deletion ("a") and so the index calculation gets the wrong result for the removal of the second "ing". It ends up removing "ng". I could not fix it while still using index2 as both the offset into the actual string being edited ("text") and into the unedited input ("text2") so I introduced an offset between the two.
A fix is here HeliosVirtualCockpit@0f5aa41 but I won't make a PR because I don't have code for the other languages and I have basically no test coverage.
The text was updated successfully, but these errors were encountered: