diff options
author | w0rp <w0rp@users.noreply.github.com> | 2018-09-10 09:24:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-10 09:24:35 +0100 |
commit | bfba216e617dd02d0dddcf390b3ec2eb0ab3e7e4 (patch) | |
tree | 5a97c366c6dd3cdedcf517864b6859bb15cfd20e /ale_linters/nasm/nasm.vim | |
parent | f00435e356fab3a5e4fe75de348f25aa21322a7d (diff) | |
parent | 150015d0dc7ea7a93b39fdd4b2be205edce35999 (diff) | |
download | ale-bfba216e617dd02d0dddcf390b3ec2eb0ab3e7e4.zip |
Merge pull request #1900 from McSwaggens/master
Fixed NASM linter from outputting junk file
Diffstat (limited to 'ale_linters/nasm/nasm.vim')
-rw-r--r-- | ale_linters/nasm/nasm.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ale_linters/nasm/nasm.vim b/ale_linters/nasm/nasm.vim index 29d19e62..cb2119a6 100644 --- a/ale_linters/nasm/nasm.vim +++ b/ale_linters/nasm/nasm.vim @@ -8,10 +8,12 @@ function! ale_linters#nasm#nasm#GetCommand(buffer) abort " Note that NASM requires a trailing slash for the -I option. let l:separator = has('win32') ? '\' : '/' let l:path = fnamemodify(bufname(a:buffer), ':p:h') . l:separator + let l:output_null = has('win32') ? 'NUL' : '/dev/null' return '%e -X gnu -I ' . ale#Escape(l:path) \ . ale#Pad(ale#Var(a:buffer, 'nasm_nasm_options')) \ . ' %s' + \ . ' -o ' . l:output_null endfunction function! ale_linters#nasm#nasm#Handle(buffer, lines) abort |