Skip to content

Commit 037ba12

Browse files
committed
fix(history): loading indicator never stops (#2126)
1 parent d598d56 commit 037ba12

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lua/fzf-lua/providers/nvim.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ local history = function(opts, str)
122122
if dr > 0 and index <= to or dr < 0 and index >= to then
123123
cb(vim.fn.histget(str, index), function()
124124
count = count - 1
125-
if count == 0 then coroutine.resume(co) end
125+
if count == 0 or index == to then
126+
coroutine.resume(co)
127+
end
126128
end)
127129
end
128130
end

0 commit comments

Comments
 (0)