Skip to content

Commit

Permalink
fix(calendar): allow the view to be written to on rerender
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed May 14, 2023
1 parent 211b0ba commit 8e247d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/neorg/modules/core/ui/calendar/views/monthly.lua
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,8 @@ module.private = {
vim.api.nvim_buf_clear_namespace(ui_info.buffer, module.private.namespaces.decorational, 0, -1)
vim.api.nvim_buf_clear_namespace(ui_info.buffer, module.private.namespaces.logical, 0, -1)

vim.api.nvim_buf_set_option(ui_info.buffer, "modifiable", true)

module.private.fill_buffer(ui_info)
self:render_decorative_text(ui_info, module.public.view_name:upper())
self:render_year_tag(ui_info, date.year)
Expand Down

0 comments on commit 8e247d4

Please sign in to comment.