From ac3f02a83e9ff769e05e8f936c4eb7686bcfe060 Mon Sep 17 00:00:00 2001 From: kiyan Date: Mon, 14 Feb 2022 19:26:55 +0100 Subject: [PATCH] tempfix: redraw when setting cursor to address a neovim issue addresses #970 --- lua/nvim-tree/view.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/nvim-tree/view.lua b/lua/nvim-tree/view.lua index 9702875c..218ff96e 100644 --- a/lua/nvim-tree/view.lua +++ b/lua/nvim-tree/view.lua @@ -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