fix(statuscolumn): fix folds_open = true

After some recent changes in https://github.com/neovim/neovim/pull/28709
I was getting an error when the user had `folds_open = true` in his
personal configuration whenever he pressed `o/O`. This is an attempt to
fix that.
This commit is contained in:
Iordanis Petkakis 2024-06-21 13:04:16 +03:00
parent dde4a9dcdf
commit 0eb9a1aa44

View file

@ -124,7 +124,7 @@ function M.statuscolumn()
elseif
show_open_folds
and not LazyVim.ui.skip_foldexpr[buf]
and vim.treesitter.foldexpr(vim.v.lnum):sub(1, 1) == ">"
and tostring(vim.treesitter.foldexpr(vim.v.lnum)):sub(1, 1) == ">"
then -- fold start
fold = { text = vim.opt.fillchars:get().foldopen or "", texthl = githl }
end