Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
rope: Add missing early return in `log_err_char_boundary` (#47191)
Lukas Wirth46b275b9dd13
diff --git a/crates/rope/src/chunk.rs b/crates/rope/src/chunk.rsindex 96d0e608777..69553eafb1b 100644--- a/crates/rope/src/chunk.rs+++ b/crates/rope/src/chunk.rs@@ -728,6 +728,7 @@ fn log_err_char_boundary(text: &str, offset: usize) {text,text.len());+ return;}// find the characterlet char_start = text.floor_char_boundary(offset);