Skip to content

Commit

Permalink
fix(ui): always pad to 2 cells for status column icons. Fixes #1571
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 3, 2023
1 parent e08813f commit 6cf6b0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lazyvim/util/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ end
---@param len? number
function M.icon(sign, len)
sign = sign or {}
len = len or 1
len = len or 2
local text = vim.fn.strcharpart(sign.text or "", 0, len) ---@type string
text = text .. string.rep(" ", len - vim.fn.strchars(text))
return sign.texthl and ("%#" .. sign.texthl .. "#" .. text .. "%*") or text
Expand Down Expand Up @@ -71,7 +71,7 @@ function M.statuscolumn()
M.icon(left),
[[%=]],
nu .. " ",
M.icon(fold or right, 2),
M.icon(fold or right),
}, "")
end

Expand Down

0 comments on commit 6cf6b0a

Please sign in to comment.