From 9f6dce3351f0880f4c114651a3967437045437fe Mon Sep 17 00:00:00 2001 From: Martin Vuille Date: Tue, 27 Dec 2016 08:05:35 -0500 Subject: [PATCH] HandleBufDelete: Use str2nr for conversion --- autoload/tagbar.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 8032cac..d75d330 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -4161,7 +4161,7 @@ endfunction " s:HandleBufDelete() {{{2 function! s:HandleBufDelete(bufname, bufnr) abort " Ignore autocmd events generated for "set nobuflisted", - let nr = +a:bufnr " bufnr is passed as a string + let nr = str2nr(a:bufnr) if bufexists(nr) && !buflisted(nr) return endif