|
|
@ -3241,7 +3241,7 @@ pub(super) fn command_mode(cx: &mut Context) {
|
|
|
|
|
|
|
|
|
|
|
|
// Handle typable commands
|
|
|
|
// Handle typable commands
|
|
|
|
if let Some(cmd) = typed::TYPABLE_COMMAND_MAP.get(parts[0]) {
|
|
|
|
if let Some(cmd) = typed::TYPABLE_COMMAND_MAP.get(parts[0]) {
|
|
|
|
let shellwords = Shellwords::from(input.as_ref());
|
|
|
|
let shellwords = Shellwords::from(input);
|
|
|
|
let words = shellwords.words().to_vec();
|
|
|
|
let words = shellwords.words().to_vec();
|
|
|
|
let args = if event == PromptEvent::Validate {
|
|
|
|
let args = if event == PromptEvent::Validate {
|
|
|
|
match cx.editor.expand_variables(&words) {
|
|
|
|
match cx.editor.expand_variables(&words) {
|
|
|
|