Skip to content

Commit

Permalink
fix(renderer): Fixed screen not updating in "no" mode
Browse files Browse the repository at this point in the history
An extra "redraw!" command is called to flush out screen updates.

See: #70
  • Loading branch information
OXY2DEV committed Aug 1, 2024
1 parent a38dd1f commit 60bc13b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ftplugin/markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ vim.api.nvim_create_autocmd({ "ModeChanged", "TextChanged" }, {
markview.keymaps.init(buffer, window, parsed_content, markview.configuration);
end
else
-- Call an extra redraw to flush out screen updates
markview.renderer.clear(buffer);
vim.cmd("redraw!");
end
end
});
Expand Down

0 comments on commit 60bc13b

Please sign in to comment.