Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Allow spaces in range queries (#17474)
Conrad Irwin5f2a5ffadde7
diff --git a/crates/vim/src/command.rs b/crates/vim/src/command.rsindex 03bb8920458..18877589905 100644--- a/crates/vim/src/command.rs+++ b/crates/vim/src/command.rs@@ -629,7 +629,7 @@ pub fn command_interceptor(mut input: &str, cx: &AppContext) -> Option<CommandInlet (range, query) = VimCommand::parse_range(input);let range_prefix = input[0..(input.len() - query.len())].to_string();- let query = query.as_str();+ let query = query.as_str().trim();let action = if range.is_some() && query == "" {Some(