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
{{ message }}
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
Hello,
I have observed the following behavior.
I have a line with annotation and I am inserting a text that starts with one or more line breaks.
If I insert the text on the end of an empty line, the annotation will be moved to the last added line.
If I insert the text on the end of a not empty line, the annotation stays on the current line.
m_rScintilla_TextArea.ClearAll();
m_rScintilla_TextArea.InsertText(0,"abc\r\r\rdef");
SetAnnotationOnEachLine();
DebugAnnotations();
Debug.WriteLine("Inserting line break with in the middle of a text (end of second line) on an empty line. Annotation will be moved into new line");
m_rScintilla_TextArea.InsertText(4,"\rnew test");
DebugAnnotations();/*// GeneratesLine | Annotations | Text0|This is an Annotation for Line 0.|abc1|This is an Annotation for Line 1.|2|This is an Annotation for Line 2.|3|This is an Annotation for Line 3.|defInserting line break with in the middle of a text (end of the second line) on an empty line. The annotation will be moved into the new lineLine | Annotations | Text0|This is an Annotation for Line 0.|abc1||2|This is an Annotation for Line 1.|new test3|This is an Annotation for Line 2.|4|This is an Annotation for Line 3.|def*/
Debug.WriteLine("\n");
m_rScintilla_TextArea.ClearAll();
m_rScintilla_TextArea.InsertText(0,"abc\rSOMETEXT\r\rdef");
SetAnnotationOnEachLine();
DebugAnnotations();
Debug.WriteLine("Inserting line break with in the middle of a text (end of second line) on a non empty line. Annotation will stay on the line of position of insertion.");
m_rScintilla_TextArea.InsertText(12,"\rnew test");
DebugAnnotations();/*// GeneratesLine | Annotations | Text0|This is an Annotation for Line 0.|abc1|This is an Annotation for Line 1.|SOMETEXT2|This is an Annotation for Line 2.|3|This is an Annotation for Line 3.|defInserting line break with in the middle of a text (end of the second line) on a non-empty line. The annotation will stay on the line of the position of insertion.Line | Annotations | Text0|This is an Annotation for Line 0.|abc1|This is an Annotation for Line 1.|SOMETEXT2||new test3|This is an Annotation for Line 2.|4|This is an Annotation for Line 3.|def*/
DebugAnnotations() and SetAnnotationOnEachLine() not added because of brevity
Are there any rules that I have to obey by inserting text with new lines concerning annotations?
Thanks & seasonal greetings
Filip, Bremen
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I have observed the following behavior.
I have a line with annotation and I am inserting a text that starts with one or more line breaks.
DebugAnnotations() and SetAnnotationOnEachLine() not added because of brevity
Are there any rules that I have to obey by inserting text with new lines concerning annotations?
Thanks & seasonal greetings
Filip, Bremen
The text was updated successfully, but these errors were encountered: