rope: Add missing early return in `log_err_char_boundary` (#47191)

Lukas Wirth created

Closes ZED-465

Release Notes:

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

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