fix(nvim): check correct var for foldlevel max in nvim-ufo

This commit is contained in:
Price Hiller 2024-02-26 17:14:51 -06:00
parent 2295449393
commit 18c735e9f3
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -19,7 +19,7 @@ local change_buf_foldlevel_by = function(num)
else
foldlevel = 0
end
if vim.b.ufo_foldlevel and foldlevel > vim.b.ufo_foldlevel_max then
if vim.b.ufo_foldlevel_max and foldlevel > vim.b.ufo_foldlevel_max then
return
end
set_buf_foldlevel(foldlevel)