Prevent text flicker with macOS input methods (bug#23412)
* src/nsterm.m ([EmacsView setMarkedText:selectedRange:]): Don't always delete the working text as ns-put-working-text does that.
This commit is contained in:
parent
d75794fd5c
commit
fd1b720028
1 changed files with 5 additions and 3 deletions
|
@ -6435,15 +6435,17 @@ - (void)setMarkedText: (id)aString selectedRange: (NSRange)selRange
|
|||
(unsigned long)selRange.length,
|
||||
(unsigned long)selRange.location);
|
||||
|
||||
if (workingText != nil)
|
||||
[self deleteWorkingText];
|
||||
if ([str length] == 0)
|
||||
return;
|
||||
{
|
||||
[self deleteWorkingText];
|
||||
return;
|
||||
}
|
||||
|
||||
if (!emacs_event)
|
||||
return;
|
||||
|
||||
processingCompose = YES;
|
||||
[workingText release];
|
||||
workingText = [str copy];
|
||||
ns_working_text = build_string ([workingText UTF8String]);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue