Account for element's bounds in Editor::bounds_for_range

Co-authored-by: Marshall <marshall@zed.dev>
This commit is contained in:
Max Brunsfeld 2023-11-08 16:02:10 -08:00
parent 1a37d9edc6
commit 7a8f219251
4 changed files with 46 additions and 23 deletions

View file

@ -159,7 +159,7 @@ pub trait InputHandler: Sized {
cx: &mut ViewContext<Self>,
);
fn bounds_for_range(
&self,
&mut self,
range_utf16: std::ops::Range<usize>,
element_bounds: crate::Bounds<Pixels>,
cx: &mut ViewContext<Self>,