mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-12 17:40:46 +08:00
Revert incorrect function argument handling 'fix'
This reverts commit2e952fb336
(#585). This reverts commitbdcdd8d0d7
(#584).
This commit is contained in:
parent
2e952fb336
commit
65e014e5a3
|
@ -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 == 2
|
||||
let self._files[a:2] = a:fileinfo
|
||||
if a:0 == 1
|
||||
let self._files[a:1] = a:fileinfo
|
||||
else
|
||||
let fname = a:fileinfo.fpath
|
||||
let self._files[fname] = a:fileinfo
|
||||
|
@ -2489,7 +2489,7 @@ function! s:AutoUpdate(fname, force, ...) abort
|
|||
|
||||
" Whether we want to skip actually displaying the tags in Tagbar and only
|
||||
" update the fileinfo
|
||||
let no_display = a:0 > 2 ? a:3 : 0
|
||||
let no_display = a:0 > 0 ? a:1 : 0
|
||||
|
||||
" This file is being loaded due to a quickfix command like vimgrep, so
|
||||
" don't process it
|
||||
|
|
Loading…
Reference in New Issue
Block a user