Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Deploy code runner menu from correct display row (#32594)

Anthony Eidc7ee63585366
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 60e7ce7ab86..78128c25ed4 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -5717,7 +5717,7 @@ impl Editor {
self.discard_inline_completion(false, cx);
let multibuffer_point = match &action.deployed_from {
- Some(CodeActionSource::Indicator(row)) => {
+ Some(CodeActionSource::Indicator(row)) | Some(CodeActionSource::RunMenu(row)) => {
DisplayPoint::new(*row, 0).to_point(&snapshot)
}
_ => self.selections.newest::<Point>(cx).head(),