This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
Loading a file as Document
makes StartStyling()
and SetStyling()
break after text is inserted or deleted by user
#94
Labels
https://github.com/HTD/TraxCodeEditor/tree/master/Test1
The test (Test1 project) uses signed
ScintillaNET
3.5.0 from Nuget package.It sets up 2 identical
Scintilla
instances, configures exactly one highlighting style, loads a short text into both instances but using different methods. The text using ASCII encoding to reject any encoding issues.Left instance's text is loaded by assigning its
Text
property. Right instance's text is loaded usingScintilla.ILoader
instance.Both editors are set up to highlight the word "FOX" on each UI update.
Then I simulate of adding and deleting some characters from both editors. I delete all I insert, so the text in both editors should not be changed, and so their highlighting shouldn't change.
Expected behavior: identical text and highlighting on both sides.
Observed behavior: highlighting of the last line in the right editor is moved incorrectly.
The text was updated successfully, but these errors were encountered: