From 65e014e5a3c3347a56b59c41c5ad0b92cdbbc9a4 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Wed, 15 Jan 2020 12:16:30 +0300 Subject: [PATCH] Revert incorrect function argument handling 'fix' This reverts commit 2e952fb336cd143dc78f851cb19e7ca9e99d83ab (#585). This reverts commit bdcdd8d0d7527f62af651d8bece9a5b3e90fda2c (#584). --- autoload/tagbar.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index e75121f..7377016 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -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