From c24f22cd14bb60b6588662805533ff19a4d6e613 Mon Sep 17 00:00:00 2001 From: 0x2CA <2478557459@qq.com> Date: Thu, 6 Feb 2025 23:54:04 +0800 Subject: [PATCH] vim: Fix Around Subword not including whitespace (#24356) Closes #24271 Release Notes: - Fixed Around Subword No Include Whitespace --- crates/vim/src/object.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/vim/src/object.rs b/crates/vim/src/object.rs index 4131c02589ed1e7961dc2c26e444de6dc3a38790..cd1269e2641ffb43f5dd0da65e8b847a9f195b8f 100644 --- a/crates/vim/src/object.rs +++ b/crates/vim/src/object.rs @@ -671,7 +671,7 @@ fn around_subword( is_word_end || is_subword_end }); - Some(start..end) + Some(start..end).map(|range| expand_to_include_whitespace(map, range, true)) } fn around_containing_word(