From b131c00574816a1477e4b1326ee4d067179fcb33 Mon Sep 17 00:00:00 2001 From: "zed-zippy[bot]" <234243425+zed-zippy[bot]@users.noreply.github.com> Date: Tue, 20 Jan 2026 08:22:05 +0000 Subject: [PATCH] rope: Add missing early return in `log_err_char_boundary` (#47191) (cherry-pick to preview) (#47192) Cherry-pick of #47191 to preview ---- Closes ZED-465 Release Notes: - N/A *or* Added/Fixed/Improved ... Co-authored-by: Lukas Wirth --- crates/rope/src/chunk.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/rope/src/chunk.rs b/crates/rope/src/chunk.rs index 96d0e60877731bc104595cfb38400face4866e39..69553eafb1b852960fa794d1b00ab28eba14888a 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 character let char_start = text.floor_char_boundary(offset);