Skip to content

Commit

Permalink
fix(calendar): use nvim_strwidth for month names as well
Browse files Browse the repository at this point in the history
  • Loading branch information
pysan3 authored and vhyrro committed Oct 29, 2023
1 parent 5eadb3c commit a081397
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/neorg/modules/core/ui/calendar/views/monthly.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ module.private = {
})
)
---@cast month_name string
-- local month_length = vim.api.nvim_strwidth(month_name)
local month_length = string.len(month_name)
local month_length = vim.api.nvim_strwidth(month_name)

local weekday_banner_id = vim.api.nvim_buf_get_extmark_by_id(
ui_info.buffer,
Expand Down

0 comments on commit a081397

Please sign in to comment.