Use nvim_win_close not wincmd c, fix #76

This commit is contained in:
Andy K. Massimino
2019-10-14 21:16:55 -04:00
parent 41cc6775ee
commit e706b8d7ce

View File

@@ -651,7 +651,7 @@ function! s:close_floating_win() " {{{1
return
endif
if win_id2win(s:float_id) > 0
execute win_id2win(s:float_id) . 'wincmd c'
call nvim_win_close(s:float_id, 0)
endif
let s:float_id = 0
endfunction