Skip to content

Instantly share code, notes, and snippets.

@mattn
Created February 17, 2012 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/1849979 to your computer and use it in GitHub Desktop.
Save mattn/1849979 to your computer and use it in GitHub Desktop.
diff --git a/autoload/quickrun/runner/system.vim b/autoload/quickrun/runner/system.vim
index 64dc1a5..0db0c4c 100644
--- a/autoload/quickrun/runner/system.vim
+++ b/autoload/quickrun/runner/system.vim
@@ -35,7 +35,9 @@ function! s:execute(cmd, input)
try
if is_cmd_exe
let sxq = &shellxquote
- let &shellxquote = '"'
+ if a:cmd !~ '^(.*)$'
+ let &shellxquote = '"'
+ endif
endif
let cmd = a:cmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment