rope: Add missing early return in `log_err_char_boundary` (#47191) (cherry-pick to preview) (#47192)

zed-zippy[bot] and Lukas Wirth created

Cherry-pick of #47191 to preview

----
Closes ZED-465

Release Notes:

- N/A *or* Added/Fixed/Improved ...

Co-authored-by: Lukas Wirth <lukas@zed.dev>

Change summary

crates/rope/src/chunk.rs | 1 +
1 file changed, 1 insertion(+)

Detailed changes

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);