Allow spaces in range queries (#17474)

Updates #17397

Release Notes:

- vim: Fixed parsing of commands with ranges `:3 d`.
This commit is contained in:
Conrad Irwin 2024-09-05 20:14:55 -06:00 committed by GitHub
parent fb35cd98c8
commit 5f2a5ffadd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -629,7 +629,7 @@ pub fn command_interceptor(mut input: &str, cx: &AppContext) -> Option<CommandIn
let (range, query) = VimCommand::parse_range(input); let (range, query) = VimCommand::parse_range(input);
let range_prefix = input[0..(input.len() - query.len())].to_string(); 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 == "" { let action = if range.is_some() && query == "" {
Some( Some(