Created
November 14, 2010 06:42
-
-
Save sgur/675967 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -577,10 +577,13 @@ function! s:Runner.build_command(tmpl) " {{{2 | |
" TODO: Add rules. | |
" FIXME: Possibility to be multiple expanded. | |
let config = self.config | |
let shebang = self.detect_shebang() | |
let src = string(self.source_name) | |
+ if s:is_win && &shellslash && match(&shell, 'sh') < 0 | |
+ let src = substitute(src, '/', '\\', 'g') | |
+ endif | |
let rule = [ | |
\ ['c', shebang != '' ? string(shebang) : 'config.command'], | |
\ ['s', src], ['S', src], | |
\ ['a', 'config.args'], | |
\ ['\%', string('%')], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment