Cleanup previous PR

This commit is contained in:
Kovid Goyal 2022-08-09 08:54:47 +05:30
parent 14fc3f6ac4
commit e9823eb40c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 4 deletions

View File

@ -97,6 +97,8 @@ Detailed list of changes
- ssh kitten: Allow completion of ssh options between the destination and command (:iss:`5322`) - ssh kitten: Allow completion of ssh options between the destination and command (:iss:`5322`)
- macOS: Fix speaking selected text not working (:iss:`5357`)
0.25.2 [2022-06-07] 0.25.2 [2022-06-07]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1558,17 +1558,16 @@ void _glfwPlatformUpdateIMEState(_GLFWwindow *w, const GLFWIMEUpdateEvent *ev) {
- (NSString *)accessibilitySelectedText - (NSString *)accessibilitySelectedText
{ {
if (_glfw.callbacks.get_current_selection) {
NSString *text = nil; NSString *text = nil;
if (_glfw.callbacks.get_current_selection) {
const char *s = _glfw.callbacks.get_current_selection(); const char *s = _glfw.callbacks.get_current_selection();
if (s) { if (s) {
text = [NSString stringWithUTF8String:s]; text = [NSString stringWithUTF8String:s];
free((void*) s); free(s);
}
}
return text; return text;
} }
}
return nil;
}
@end @end
// }}} // }}}