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.

edit prediction: Fix popover positioning when placed above edit (#23902)

Bennet Bo Fenner5e210c083fc4
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs
index 93eadc5393a..01c87e31c40 100644
--- a/crates/editor/src/element.rs
+++ b/crates/editor/src/element.rs
@@ -3527,7 +3527,7 @@ impl EditorElement {
crate::inline_completion_edit_text(&snapshot, edits, edit_preview, false, cx)
})?;
- let line_count = highlighted_edits.text.lines().count() + 1;
+ let line_count = highlighted_edits.text.lines().count();
let longest_row =
editor_snapshot.longest_row_in_range(edit_start.row()..edit_end.row() + 1);