From a0813979663d5e55c481bb557c250b551042d115 Mon Sep 17 00:00:00 2001 From: pysan3 Date: Sun, 29 Oct 2023 19:46:20 +0900 Subject: [PATCH] fix(calendar): use `nvim_strwidth` for month names as well --- lua/neorg/modules/core/ui/calendar/views/monthly.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/neorg/modules/core/ui/calendar/views/monthly.lua b/lua/neorg/modules/core/ui/calendar/views/monthly.lua index 77e94ff8d..203107e07 100644 --- a/lua/neorg/modules/core/ui/calendar/views/monthly.lua +++ b/lua/neorg/modules/core/ui/calendar/views/monthly.lua @@ -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,