~detegr/nvim-bqn

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] Redraw after rendeing output

Details
Message ID
<20211208195052.314916-1-8mayday@gmail.com>
DKIM signature
missing
Download raw message
Patch: +2 -0
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
Details
Message ID
<20211208204343.lrs7ghusvbzbpvfn@haukka.localdomain>
In-Reply-To
<20211208195052.314916-1-8mayday@gmail.com> (view parent)
DKIM signature
missing
Download raw message
Thanks, pushed to master.

-- 
Antti
Reply to thread Export thread (mbox)