Posted 20 years ago
by GLarson
I have a line with no text - "\n" only.
I insert text (e.g. "My new line\n") in place of this line using Document.UndoableInsert with the offset at the beginning of the line, and a length of 1 to replace the newline.
The text replaces the newline properly. However, the line modification marks span the replaced line plus the following line (which, obviously, wasn't edited).
Is this intended behavior? I notice that if I select the empty line and Paste, I get the same thing.
Please let me know if this is something you can fix, or maybe give me a workaround. It is critical in my application that the user gets accurate feedback on what was edited.
Thanks.
Greg
I insert text (e.g. "My new line\n") in place of this line using Document.UndoableInsert with the offset at the beginning of the line, and a length of 1 to replace the newline.
The text replaces the newline properly. However, the line modification marks span the replaced line plus the following line (which, obviously, wasn't edited).
Is this intended behavior? I notice that if I select the empty line and Paste, I get the same thing.
Please let me know if this is something you can fix, or maybe give me a workaround. It is critical in my application that the user gets accurate feedback on what was edited.
Thanks.
Greg