diff --git a/crates/gpui/src/platform/linux/wayland/window.rs b/crates/gpui/src/platform/linux/wayland/window.rs index bb0b29df44..3fb8a588fb 100644 --- a/crates/gpui/src/platform/linux/wayland/window.rs +++ b/crates/gpui/src/platform/linux/wayland/window.rs @@ -635,12 +635,8 @@ impl WaylandWindowStatePtr { let mut bounds: Option> = None; if let Some(mut input_handler) = state.input_handler.take() { drop(state); - if let Some(selection) = input_handler.selected_text_range(true) { - bounds = input_handler.bounds_for_range(if selection.reversed { - selection.range.start..selection.range.start - } else { - selection.range.end..selection.range.end - }); + if let Some(selection) = input_handler.marked_text_range() { + bounds = input_handler.bounds_for_range(selection.start..selection.start); } self.state.borrow_mut().input_handler = Some(input_handler); }