fix(actions.insert_symbol): schedule to insert at correct position (#3218)
This commit is contained in:
@@ -488,7 +488,9 @@ end
|
||||
actions.insert_symbol = function(prompt_bufnr)
|
||||
local symbol = action_state.get_selected_entry().value[1]
|
||||
actions.close(prompt_bufnr)
|
||||
vim.api.nvim_put({ symbol }, "", true, true)
|
||||
vim.schedule(function()
|
||||
vim.api.nvim_put({ symbol }, "", true, true)
|
||||
end)
|
||||
end
|
||||
|
||||
--- Insert a symbol into the current buffer and keeping the insert mode.
|
||||
|
||||
Reference in New Issue
Block a user