Skip to content

Commit

Permalink
fix: schedule a callback to avoid main loop error
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Oct 24, 2023
1 parent 63d2f8a commit 9487fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/oil/adapters/trash/freedesktop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ M.list = function(url, column_defs, cb)
if close_err then
cb(close_err)
else
read_next_trash_dir()
vim.schedule(read_next_trash_dir)
end
end)
end
Expand Down

0 comments on commit 9487fdf

Please sign in to comment.