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
|
else
|
||||||
foldlevel = 0
|
foldlevel = 0
|
||||||
end
|
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
|
return
|
||||||
end
|
end
|
||||||
set_buf_foldlevel(foldlevel)
|
set_buf_foldlevel(foldlevel)
|
||||||
|
Loading…
Reference in New Issue
Block a user