diff options
author | w0rp <devw0rp@gmail.com> | 2017-02-11 20:34:14 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-02-11 20:34:14 +0000 |
commit | 2078255ec39c078fc15b826a09da85b1c3e47774 (patch) | |
tree | c075c6d6ff1fbfb11ee19f73e59ff80a3370756f /autoload | |
parent | ecbb27680563a50d4dd981f968d659ef20bfbe30 (diff) | |
download | ale-2078255ec39c078fc15b826a09da85b1c3e47774.zip |
Fix filename substitution, especially on Windows
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/engine.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim index 6815f395..a5bf3096 100644 --- a/autoload/ale/engine.vim +++ b/autoload/ale/engine.vim @@ -300,7 +300,7 @@ function! ale#engine#FormatCommand(buffer, command) abort " file. if l:command =~# '%s' let l:filename = fnamemodify(bufname(a:buffer), ':p') - let l:command = substitute(l:command, '%s', fnameescape(l:filename), 'g') + let l:command = substitute(l:command, '%s', '\=fnameescape(l:filename)', 'g') endif if l:command =~# '%t' @@ -311,7 +311,7 @@ function! ale#engine#FormatCommand(buffer, command) abort \ . (has('win32') ? '\' : '/') \ . fnamemodify(bufname(a:buffer), ':t') - let l:command = substitute(l:command, '%t', fnameescape(l:temporary_file), 'g') + let l:command = substitute(l:command, '%t', '\=fnameescape(l:temporary_file)', 'g') endif " Finish formatting so %% becomes %. |