Compare commits

..

2 Commits

Author SHA1 Message Date
0e16033e9c chore(main): release 8.4.3 (#1573)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-03 18:30:22 +02:00
6cf6b0a624 fix(ui): always pad to 2 cells for status column icons. Fixes #1571 2023-10-03 18:28:05 +02:00
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,12 @@
# Changelog
## [8.4.3](https://github.com/LazyVim/LazyVim/compare/v8.4.2...v8.4.3) (2023-10-03)
### Bug Fixes
* **ui:** always pad to 2 cells for status column icons. Fixes [#1571](https://github.com/LazyVim/LazyVim/issues/1571) ([6cf6b0a](https://github.com/LazyVim/LazyVim/commit/6cf6b0a6241c659113f5646ff64fba7dbf5161b9))
## [8.4.2](https://github.com/LazyVim/LazyVim/compare/v8.4.1...v8.4.2) (2023-10-03)

View File

@ -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
@ -71,7 +71,7 @@ function M.statuscolumn()
M.icon(left),
[[%=]],
nu .. " ",
M.icon(fold or right, 2),
M.icon(fold or right),
}, "")
end