Skip to content

Commit 351940a

Browse files
committed
Really fix s:set_current_compiler()
References: #350
1 parent aeb5242 commit 351940a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/dispatch.vim

Lines changed: 1 addition & 1 deletion
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:1, 'current_compiler', a:name)
368+
call setbufvar(a:0 ? a:1 : bufnr(''), 'current_compiler', a:name)
369369
endif
370370
endfunction
371371

0 commit comments

Comments
 (0)