Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@@ -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
You can’t perform that action at this time.