Skip to content

Commit

Permalink
fix(fold): options type changed since v0.10 (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhwang91 committed Dec 25, 2024
1 parent 7a70163 commit 32cb247
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lua/ufo/fold/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,13 @@ updateFoldDebounced = (function()
end)()

local function handleDiffMode(winid, new, old)
if old ~= new and new == 0 then
if old == new then
return
end
if not utils.has10() then
new, old = new == '1', old == '1'
end
if not new then
local bufnr = api.nvim_win_get_buf(winid)
local fb = manager:get(bufnr)

Expand Down

0 comments on commit 32cb247

Please sign in to comment.