Skip to content

Commit aeb5242

Browse files
committed
Fix s:set_current_compiler() argument use
Resolves: #351
1 parent 67a49fa commit aeb5242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/dispatch.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ function! s:set_current_compiler(name, ...) abort
365365
if empty(a:name) && (!a:0 || a:1 ==# bufnr(''))
366366
unlet! b:current_compiler
367367
else
368-
call setbufvar(a:bufnr, 'current_compiler', a:name)
368+
call setbufvar(a:1, 'current_compiler', a:name)
369369
endif
370370
endfunction
371371

0 commit comments

Comments
 (0)