mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-08 00:58:04 +08:00
Fix bug in function 'put', was parsing wrong number of args (#585)
This commit is contained in:
parent
bdcdd8d0d7
commit
2e952fb336
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user