Allow spaces in range queries (#17474)

Conrad Irwin created

Updates #17397

Release Notes:

- vim: Fixed parsing of commands with ranges `:3 d`.

Change summary

crates/vim/src/command.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/vim/src/command.rs 🔗

@@ -629,7 +629,7 @@ pub fn command_interceptor(mut input: &str, cx: &AppContext) -> Option<CommandIn
 
     let (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(