Fix bug in function 'put', was parsing wrong number of args (#585)

This commit is contained in:
cridemichel 2020-01-14 15:56:21 +01:00 committed by Caleb Maclennan
parent bdcdd8d0d7
commit 2e952fb336

View File

@ -663,8 +663,8 @@ endfunction
" s:known_files.put() {{{2
" Optional second argument is the filename
function! s:known_files.put(fileinfo, ...) abort dict
if a:0 == 1
let self._files[a:1] = a:fileinfo
if a:0 == 2
let self._files[a:2] = a:fileinfo
else
let fname = a:fileinfo.fpath
let self._files[fname] = a:fileinfo