1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 10:40:04 +08:00

Fix preview windows smart quit (#2791)

This commit is contained in:
Wang Shidong 2019-05-06 14:07:59 +08:00 committed by GitHub
parent 2060eab218
commit e0ec22db97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,8 +40,9 @@ fu! zvim#util#SmartClose() abort
for i in range(1,win_count)
if index(ignorewin , bufname(winbufnr(i))) != -1 || index(ignoreft, getbufvar(bufname(winbufnr(i)),'&filetype')) != -1
let num = num - 1
endif
if getbufvar(winbufnr(i),'&buftype') ==# 'quickfix'
elseif getbufvar(winbufnr(i),'&buftype') ==# 'quickfix'
let num = num - 1
elseif getwinvar(i, '&previewwindow') == 1 && winnr() !=# i
let num = num - 1
endif
endfor