Open zyavrik opened 10 years ago
Suggested fix:
-(void)processEditing {
// performReplacementsForRange doesn't support multi-line blocks, so using update method
//[self performReplacementsForRange:[self editedRange]];
[self update];
[super processEditing];
}
/*- (void)performReplacementsForRange:(NSRange)changedRange {
NSRange extendedRange = NSUnionRange(changedRange, [[_attributedString string] lineRangeForRange:NSMakeRange(NSMaxRange(changedRange), 0)]);
[self applyStylesToRange:extendedRange];
}*/
Suggested fix causes an issue with jumping cursor.
Steps to reproduce:
Actual result: Only line 2 will be highlighted.
Should be: Both lines should be highlighted.
Note: Highlighting is correct after keyboard hides.