fix: Close async oneshot jobs on finder:close (#1140)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user