diff options
author | ath3 | 2022-06-21 16:48:01 +0000 |
---|---|---|
committer | GitHub | 2022-06-21 16:48:01 +0000 |
commit | ce85b9716df5e1ea804994202687f19cd711ae1b (patch) | |
tree | 937b70f08d090e4826ecbe4328b53839fd7dc5a8 /helix-term/src/commands | |
parent | 8b67acf130e12cf8aaa439fe19ea7b8917db300b (diff) |
Enable shellwords for Windows (with escaping disabled) (#2767)
Diffstat (limited to 'helix-term/src/commands')
-rw-r--r-- | helix-term/src/commands/typed.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index ae3e63af..58256c7d 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -1802,15 +1802,7 @@ pub fn command_mode(cx: &mut Context) { // Handle typable commands if let Some(cmd) = typed::TYPABLE_COMMAND_MAP.get(parts[0]) { - let args = if cfg!(unix) { - shellwords::shellwords(input) - } else { - // Windows doesn't support POSIX, so fallback for now - parts - .into_iter() - .map(|part| part.into()) - .collect::<Vec<_>>() - }; + let args = shellwords::shellwords(input); if let Err(e) = (cmd.fun)(cx, &args[1..], event) { cx.editor.set_error(format!("{}", e)); |