Bug 448762: StyledText#replaceTextRange(..) sends wrong selection event (length==0)