1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-18 12:00:23 +01:00

HandleBufDelete: Use str2nr for conversion

This commit is contained in:
Martin Vuille
2016-12-27 08:05:35 -05:00
parent 5b563a0d2d
commit 9f6dce3351

View File

@@ -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