From 2036fc48b5806ea53a3890214654ee2d8d812f6d Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Sun, 26 Feb 2023 17:08:11 -0800 Subject: [PATCH] moved code action indicator to the left --- crates/editor/src/display_map.rs | 1 - crates/editor/src/element.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/editor/src/display_map.rs b/crates/editor/src/display_map.rs index 4aed3e5f5c..0a59d7e835 100644 --- a/crates/editor/src/display_map.rs +++ b/crates/editor/src/display_map.rs @@ -801,7 +801,6 @@ impl DisplayRow { } } - // Force users to think about the display map when using this type pub fn start(&self) -> DisplayPoint { DisplayPoint::new(self.0, 0) } diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs index 5b1e1273c6..9a205b39fc 100644 --- a/crates/editor/src/element.rs +++ b/crates/editor/src/element.rs @@ -570,7 +570,7 @@ impl EditorElement { } if let Some((row, indicator)) = layout.code_actions_indicator.as_mut() { - let mut x = bounds.width() - layout.gutter_padding; + let mut x = 0.; let mut y = *row as f32 * line_height - scroll_top; x += ((layout.gutter_padding + layout.gutter_margin) - indicator.size().x()) / 2.; y += (line_height - indicator.size().y()) / 2.;