fix issue when operating from a floating window
the floating window would get closed when we open and returning to the original window would crash.
This commit is contained in:
parent
76477792b3
commit
6c13c0dbc6
|
@ -65,7 +65,9 @@ return vim.schedule_wrap(function(items, opts, on_choice)
|
||||||
items,
|
items,
|
||||||
opts,
|
opts,
|
||||||
vim.schedule_wrap(function(...)
|
vim.schedule_wrap(function(...)
|
||||||
|
if vim.api.nvim_win_is_valid(winid) then
|
||||||
vim.api.nvim_win_set_cursor(winid, cursor)
|
vim.api.nvim_win_set_cursor(winid, cursor)
|
||||||
|
end
|
||||||
on_choice(...)
|
on_choice(...)
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue