Fixed NASM linter from outputting junk file
This commit is contained in:
parent
0948dcc435
commit
8bbf1425bf
@ -8,10 +8,12 @@ function! ale_linters#nasm#nasm#GetCommand(buffer) abort
|
|||||||
" Note that NASM requires a trailing slash for the -I option.
|
" Note that NASM requires a trailing slash for the -I option.
|
||||||
let l:separator = has('win32') ? '\' : '/'
|
let l:separator = has('win32') ? '\' : '/'
|
||||||
let l:path = fnamemodify(bufname(a:buffer), ':p:h') . l:separator
|
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)
|
return '%e -X gnu -I ' . ale#Escape(l:path)
|
||||||
\ . ale#Pad(ale#Var(a:buffer, 'nasm_nasm_options'))
|
\ . ale#Pad(ale#Var(a:buffer, 'nasm_nasm_options'))
|
||||||
\ . ' %s'
|
\ . ' %s'
|
||||||
|
\ . ' -o ' . l:output_null
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ale_linters#nasm#nasm#Handle(buffer, lines) abort
|
function! ale_linters#nasm#nasm#Handle(buffer, lines) abort
|
||||||
|
Loading…
x
Reference in New Issue
Block a user