Another issue was found in the capture deleted lines routine when the selection is replaced by a single character (typing a character when text is selected). There were two conditions that reset the modified line variable when a selection was deleted - when both the selection start and end positions were either at the beginning of a line or at the end of the line.
However, if the selection is replaced with a single character, the modified line variable should not be reset since the line has been modified by the additional of the character. So a check was added that the number of characters added from the document change must be zero. This value was already available because it was stored when the document change signal was received (and up to now, was not being used).
[commit 5abae096ce]
Saturday, February 16, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
All comments and feedback welcomed, whether positive or negative.
(Anonymous comments are allowed, but comments with URL links or unrelated comments will be removed.)