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.

Pop end row if the end is equal to the starting sticky row (#47314)

KyleBarton901fe23e2541
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs
index 7f29097c152..7050b4f5cfb 100644
--- a/crates/editor/src/element.rs
+++ b/crates/editor/src/element.rs
@@ -4856,7 +4856,7 @@ impl EditorElement {
while end_rows
.last()
- .is_some_and(|&last_end| last_end < sticky_row)
+ .is_some_and(|&last_end| last_end <= sticky_row)
{
end_rows.pop();
}