Skip to content

Commit

Permalink
fix: yet another "i" (closes #1665)
Browse files Browse the repository at this point in the history
Change from `feedkeys` to `startinsert`, hopefully won't cause
any issues since we now use scheduling in the `ModeChanged` callback.
  • Loading branch information
ibhagwan committed Jan 2, 2025
1 parent 0dc6161 commit 56b7a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/fzf-lua/fzf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function M.raw_fzf(contents, fzf_cli_args, opts)
if vim.api.nvim_buf_is_valid(e.buf)
and vim.api.nvim_get_mode().mode ~= "t"
then
utils.feed_keys_termcodes("i")
vim.cmd("startinsert")
end
end, 0)
end
Expand Down

0 comments on commit 56b7a33

Please sign in to comment.