fix previous commit's buf

This commit is contained in:
Nachuan Tang
2023-03-11 12:52:25 -05:00
parent 711707ebae
commit 8009a07c03
+4
View File
@@ -189,6 +189,10 @@ endfunction
function VistaH2()
if exists('*vista#util#BinarySearch')
let bufs = map(filter(copy(getbufinfo()), 'v:val.listed'), 'v:val.bufnr')
if index(bufs, bufnr('%')) > 0
return
endif
let found = vista#util#BinarySearch(g:vista.raw, line('.'), 'line', '')
if empty(found)
return