Handle NSAttributedString inputs (bug#29837)
; Do not merge to master. * src/nsterm.m (EmacsView::insertText): Handle NSAttributedString.
This commit is contained in:
parent
0deab3fbd8
commit
48829cba21
1 changed files with 9 additions and 2 deletions
11
src/nsterm.m
11
src/nsterm.m
|
@ -6317,11 +6317,18 @@ flag set (this is probably a bug in the OS).
|
|||
by doCommandBySelector: deleteBackward: */
|
||||
- (void)insertText: (id)aString
|
||||
{
|
||||
NSString *s = aString;
|
||||
NSUInteger len = [s length];
|
||||
NSString *s;
|
||||
NSUInteger len;
|
||||
|
||||
NSTRACE ("[EmacsView insertText:]");
|
||||
|
||||
if ([aString isKindOfClass:[NSAttributedString class]])
|
||||
s = [aString string];
|
||||
else
|
||||
s = aString;
|
||||
|
||||
len = [s length];
|
||||
|
||||
if (NS_KEYLOG)
|
||||
NSLog (@"insertText '%@'\tlen = %lu", aString, (unsigned long) len);
|
||||
processingCompose = NO;
|
||||
|
|
Loading…
Add table
Reference in a new issue