Skip to content

Commit

Permalink
fix(calendar): prevent the buffer from being modifiable after it has …
Browse files Browse the repository at this point in the history
…been filled
  • Loading branch information
vhyrro committed May 14, 2023
1 parent 48face2 commit 351e103
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/neorg/modules/core/ui/calendar/views/monthly.lua
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ module.private = {
module.private.render_year_tag(ui_info, date.year)
module.private.render_month_array(ui_info, date, options)
module.private.select_current_day(ui_info, date)

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

return
end

Expand Down

0 comments on commit 351e103

Please sign in to comment.