fix(nvim): check correct var for foldlevel max in nvim-ufo
This commit is contained in:
parent
2295449393
commit
18c735e9f3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user