From 46b275b9dd13e69a0a100f941ae60d5b760d9fbe Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Tue, 20 Jan 2026 09:08:22 +0100 Subject: [PATCH] rope: Add missing early return in `log_err_char_boundary` (#47191) Closes ZED-465 Release Notes: - N/A *or* Added/Fixed/Improved ... --- 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);