This work arounds another bug with neovim virtual lines: when we update
output for a line and the new output contains less lines than previously
neovim behaves weird (the previous output is not cleared properly).
The redraw command at the end of an update fixes this so neovim properly
redraws the grid.
---
lua/bqn.lua | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lua/bqn.lua b/lua/bqn.lua
index e414b1f..bcf6dc9 100644
--- a/lua/bqn.lua
+++ b/lua/bqn.lua
@@ -110,6 +110,8 @@ function evalBQN(from, to, pretty)
vim.api.nvim_command('normal zz')
end
end
+
+ vim.api.nvim_command("redraw!")
end
return {
--
2.30.2