summaryrefslogtreecommitdiff
path: root/ale_linters/nasm
diff options
context:
space:
mode:
authorBartek thindil Jasicki <thindil@laeran.pl>2020-08-29 10:42:25 +0200
committerBartek thindil Jasicki <thindil@laeran.pl>2020-08-29 10:42:25 +0200
commit0de847a8e1793b597ba0a73ae8e20797a5fce920 (patch)
tree6f465b404af38ff25dddde94e052bdfa0a3a38c8 /ale_linters/nasm
parent62f07d820c2b474216657bd43a3a919469c9584f (diff)
parent7d4ce4e6aa960a6052a16d90322566d6f4fddb7c (diff)
downloadale-0de847a8e1793b597ba0a73ae8e20797a5fce920.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'ale_linters/nasm')
-rw-r--r--ale_linters/nasm/nasm.vim3
1 files changed, 1 insertions, 2 deletions
diff --git a/ale_linters/nasm/nasm.vim b/ale_linters/nasm/nasm.vim
index 347abc1b..c4f53629 100644
--- a/ale_linters/nasm/nasm.vim
+++ b/ale_linters/nasm/nasm.vim
@@ -7,10 +7,9 @@ call ale#Set('nasm_nasm_options', '')
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)
+ return '%e -X gnu -I %s:h' . l:separator
\ . ale#Pad(ale#Var(a:buffer, 'nasm_nasm_options'))
\ . ' %s'
\ . ' -o ' . l:output_null