Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

vim: Fix Around Subword not including whitespace (#24356)

0x2CAc24f22cd14bb
diff --git a/crates/vim/src/object.rs b/crates/vim/src/object.rs
index 4131c02589e..cd1269e2641 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(