From ea14bbbfa83cec76c156e29f81e7fddd76b67933 Mon Sep 17 00:00:00 2001 From: fantacell Date: Mon, 25 Aug 2025 22:29:23 +0200 Subject: [PATCH] Throw a warning instead of crashing --- crates/vim/src/helix/boundary.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/vim/src/helix/boundary.rs b/crates/vim/src/helix/boundary.rs index ccaefc072b..e07d2cffe5 100644 --- a/crates/vim/src/helix/boundary.rs +++ b/crates/vim/src/helix/boundary.rs @@ -94,13 +94,13 @@ trait BoundedObject { let inner_start = self .next_start(map, outer_range.start, false) .unwrap_or_else(|| { - todo!(); + log::warn!("The motion might not have found the text object correctly"); outer_range.start }); let inner_end = self .previous_end(map, outer_range.end, false) .unwrap_or_else(|| { - todo!(); + log::warn!("The motion might not have found the text object correctly"); outer_range.end }); inner_start..inner_end