fix: Close async oneshot jobs on finder:close (#1140)

This commit is contained in:
TJ DeVries
2021-08-20 14:41:52 -04:00
committed by GitHub
parent 260f4617b6
commit 4f91ffcbab
2 changed files with 23 additions and 5 deletions

View File

@@ -385,6 +385,7 @@ function Picker:find()
while true do
-- Wait for the next input
rx.last()
await_schedule()
self:_reset_track()
@@ -1125,6 +1126,10 @@ function pickers.on_close_prompt(prompt_bufnr)
picker.previewer:teardown()
end
if picker.finder then
picker.finder:close()
end
picker.close_windows(status)
end