tempfix: redraw when setting cursor to address a neovim issue

addresses #970
This commit is contained in:
kiyan
2022-02-14 19:26:55 +01:00
parent 6da7467944
commit ac3f02a83e

View File

@@ -218,6 +218,8 @@ end
function M.set_cursor(opts)
if M.is_visible() then
pcall(a.nvim_win_set_cursor, M.get_winnr(), opts)
-- patch until https://github.com/neovim/neovim/issues/17395 is fixed
require"nvim-tree.renderer".draw()
end
end