summaryrefslogtreecommitdiff
path: root/lua/telescope/pickers.lua
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2021-08-20 14:41:52 -0400
committerGitHub <noreply@github.com>2021-08-20 14:41:52 -0400
commit4f91ffcbab427503b1e3ebfb02e47400d6eb561a (patch)
tree6a5fa52f053e1f071ce9e1bae0dd925d6cd85b32 /lua/telescope/pickers.lua
parent260f4617b6217e99dfde104e6f6429a35dc49a1d (diff)
fix: Close async oneshot jobs on finder:close (#1140)
Diffstat (limited to 'lua/telescope/pickers.lua')
-rw-r--r--lua/telescope/pickers.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua
index 11fa2fa..7dbe8a0 100644
--- a/lua/telescope/pickers.lua
+++ b/lua/telescope/pickers.lua
@@ -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