ZIm/crates/gpui/src
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
..
app Fix double lease panic in Quote Selection command (#12217) 2024-05-23 12:14:34 -07:00
elements Start on a database-backed prompt library (#12468) 2024-06-03 15:58:43 +02:00
keymap Make keymaps reusable across platforms (#10811) 2024-04-22 13:24:25 -07:00
platform gpui: Handle null string pointer in window::insert_text (#12446) 2024-06-03 09:36:38 -07:00
text_system Introduce custom fold placeholders (#12214) 2024-05-23 15:22:30 -06:00
window Merge ElementContext into WindowContext (#10979) 2024-04-25 12:54:39 +02:00
action.rs gpui-macros: Hide autogenerated action types/functions (#10417) 2024-04-11 15:38:47 +02:00
app.rs Fix GPUI get_menus documentation (#12571) 2024-06-02 13:06:14 +02:00
arena.rs Log if element arena allocation is >80% 2024-01-24 11:03:28 +01:00
asset_cache.rs gpui: Add SVG rendering to img element and generic asset cache (#9931) 2024-03-29 17:09:49 -07:00
assets.rs Make tests less noisy (#12463) 2024-05-29 18:06:45 -07:00
bounds_tree.rs Fix flickering (#9012) 2024-03-11 10:45:57 +01:00
color.rs Use checked str slices in Rgba::TryFrom<str> (#12097) 2024-05-24 12:32:46 +03:00
element.rs gpui: Pass Style by value to request_layout (#11597) 2024-05-09 11:38:53 +02:00
executor.rs Make block_with_timeout more robust (#11670) 2024-05-10 13:10:02 -06:00
geometry.rs wayland: Fix window bounds restoration (#12581) 2024-06-03 09:27:01 -07:00
global.rs Make a macro for less boilerplate when moving variables (#12182) 2024-05-22 22:07:29 -07:00
gpui.rs gpui: Improve Global ergonomics (#11923) 2024-05-16 12:47:43 -04:00
input.rs Document / lockdown more of GPUI 2024-01-21 14:26:45 -08:00
interactive.rs chore: Fix refining_impl_trait lint occurences (#11979) 2024-05-17 16:58:22 +02:00
key_dispatch.rs Merge ElementContext into WindowContext (#10979) 2024-04-25 12:54:39 +02:00
keymap.rs chore: Bump Rust version to 1.76 (#7592) 2024-02-09 10:45:39 +02:00
platform.rs Fix or promote leftover TODOs and GPUI APIs (#12514) 2024-05-31 18:36:15 -07:00
prelude.rs Document / lockdown more of GPUI 2024-01-21 14:26:45 -08:00
scene.rs Add an animation to the LSP checking indicator (#9463) 2024-03-19 10:16:18 -07:00
shared_string.rs Add logic for managing language and theme extensions (#7467) 2024-02-07 15:14:50 -05:00
shared_uri.rs Rework loading images from files (#7088) 2024-01-30 11:26:02 -05:00
style.rs windows: Support all OpenType font features (#10756) 2024-04-26 13:58:12 -07:00
styled.rs Add col/row resize cursor styles (#11406) 2024-05-06 14:22:56 -07:00
subscription.rs Switch Arc<Mutex<Keymap>> to Rc<RefCell<Keymap>>, a relic of the GPUI2 port. 2024-01-22 19:30:38 -08:00
svg_renderer.rs Make tests less noisy (#12463) 2024-05-29 18:06:45 -07:00
taffy.rs gpui: Bump taffy to 0.4.3 again (#11655) 2024-05-10 15:05:50 +02:00
test.rs Throttle the sending of UpdateFollowers messages (#8918) 2024-03-06 14:58:41 +01:00
text_system.rs Allow UI font weight to be assigned in settings (#12333) 2024-05-26 23:06:58 -06:00
util.rs Prompt library updates (#11988) 2024-05-22 18:04:47 -04:00
view.rs Introduce Editor::insert_flaps and Editor::remove_flaps (#12096) 2024-05-21 20:23:37 +02:00
window.rs Fix or promote leftover TODOs and GPUI APIs (#12514) 2024-05-31 18:36:15 -07:00