mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 12:42:25 +00:00
oops
This commit is contained in:
parent
e65aee4533
commit
228364e317
1 changed files with 2 additions and 1 deletions
|
|
@ -1441,13 +1441,14 @@ is_ascii_control_char(char x) {
|
|||
replacementRange:(NSRange)replacementRange
|
||||
{
|
||||
(void)selectedRange; (void)replacementRange;
|
||||
[markedText release];
|
||||
if (string == nil) { [self unmarkText]; return; }
|
||||
if ([string isKindOfClass:[NSAttributedString class]]) {
|
||||
if (((NSMutableAttributedString*)string).length == 0) { [self unmarkText]; return; }
|
||||
[markedText release];
|
||||
markedText = [[NSMutableAttributedString alloc] initWithAttributedString:string];
|
||||
} else {
|
||||
if (((NSString*)string).length == 0) { [self unmarkText]; return; }
|
||||
[markedText release];
|
||||
markedText = [[NSMutableAttributedString alloc] initWithString:string];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue