Files
oak-gpui/crates
Sean Billig be2df79d5c gpui: Handle null string pointer in window::insert_text (#12446)
`[NSString UTF8String]` sometimes returns null (it's documented as
such), and when it does, zed crashes in `window::insert_text`. I'm
running into this sometimes when using alt-d to delete forward. It
usually only happens with multiple cursors, but sometimes with a single
cursor. It *might* only happen when using the "Unicode Hex Input"
keyboard 'Input Source' (which I started using to avoid entering weird
characters in zed when using emacs meta keybindings that I haven't
defined in zed).

When using the US English input source, alt-d always results in a call
to `insert_text`. When using the Unicode Hex Input source it usually
doesn't, but when it does `text.UTF8String()` returns null. `text` isn't
null. `[text length]` returns 1. `[text characterAtIndex: 0]` seems to
always return `56797` (an undefined utf-16 codepoint).

Release Notes:

- Fixed crash on mac when deleting with alt-d
2024-06-03 09:36:38 -07:00
..
2024-05-29 18:06:45 -07:00
2024-05-29 18:06:45 -07:00
2024-05-10 15:50:20 -06:00
2024-04-23 13:31:21 -04:00
2024-03-28 18:32:11 +01:00
2024-05-22 14:36:15 +03:00
2024-05-29 18:06:45 -07:00
2024-04-30 23:31:59 -06:00
2024-05-10 15:50:20 -06:00
2024-03-11 10:45:57 +01:00
2024-03-26 16:10:09 -07:00
2024-05-09 21:08:49 -06:00
2024-05-23 15:50:59 +02:00
2024-05-29 18:06:45 -07:00
2024-05-29 18:06:45 -07:00
2024-05-29 18:06:45 -07:00
2024-04-15 14:21:52 +02:00
2024-05-29 18:06:45 -07:00
2024-05-29 18:06:45 -07:00