This commit is contained in:
Allen Webster 2020-05-01 18:00:37 -07:00
parent 6454ffc264
commit ac906663d8
1 changed files with 1 additions and 1 deletions

View File

@ -916,7 +916,7 @@ mac_toggle_fullscreen(void){
}
- (void)insertText:(NSString*)text{
u32 len = [characters length];
u32 len = [text length];
Scratch_Block scratch(mac_vars.tctx);
u16 *utf16 = push_array(scratch, u16, len);
[text getCharacters:utf16 range:NSMakeRange(0, len)];