Skip to content

Commit d545783

Browse files
authored
fix(actions.insert_symbol): schedule to insert at correct position (#3218)
1 parent 79552ef commit d545783

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/telescope/actions/init.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,9 @@ end
488488
actions.insert_symbol = function(prompt_bufnr)
489489
local symbol = action_state.get_selected_entry().value[1]
490490
actions.close(prompt_bufnr)
491-
vim.api.nvim_put({ symbol }, "", true, true)
491+
vim.schedule(function()
492+
vim.api.nvim_put({ symbol }, "", true, true)
493+
end)
492494
end
493495

494496
--- Insert a symbol into the current buffer and keeping the insert mode.

0 commit comments

Comments
 (0)