~detegr/nvim-bqn

Redraw after rendeing output v1 APPLIED

Andrey Popp: 1
 Redraw after rendeing output

 1 files changed, 2 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~detegr/nvim-bqn/patches/27217/mbox | git am -3
Learn more about email & git

[PATCH] Redraw after rendeing output Export this patch

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
Thanks, pushed to master.