Files
oak-gpui/crates
Kirill Bulatov e830865eb1 Return an empty measurement instead of panicking (#15269)
Follow-up of https://github.com/zed-industries/zed/pull/15256

Returns zero size for no items to render.

Incorrect worktree state made the uniform list to have 0 items to
render, so
```Rust
let mut items = (self.render_items)(item_ix..item_ix + 1, cx);
let mut item_to_measure = items.pop().unwrap();
```
panicked as the first line returned an empty array despite a
single-element range provided.


Release Notes:

- N/A
2024-07-26 14:21:09 +03:00
..
2024-07-23 15:01:05 -07:00
2024-05-29 18:06:45 -07:00
2024-07-23 15:01:05 -07:00
2024-07-26 03:31:41 -04:00
2024-07-26 03:31:41 -04:00
2024-07-23 15:01:05 -07:00
2024-05-29 18:06:45 -07:00
2024-04-30 23:31:59 -06:00
2024-07-23 15:01:05 -07:00
2024-03-11 10:45:57 +01:00
2024-07-15 17:04:15 -06:00
2024-07-25 09:00:53 -06:00
2024-07-26 03:31:41 -04:00
2024-06-21 16:32:32 -07:00
2024-07-26 03:31:41 -04:00
2024-04-15 14:21:52 +02:00
2024-07-26 03:31:41 -04:00