Skip to content

Commit

Permalink
fix: massive overshooting with the insert mode cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Jul 30, 2021
1 parent 8d52d0f commit 965fbe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/telescope/_extensions/neorg/insert_link.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ return function(opts)
local entry = actions.get_selected_entry()
actions.close(prompt_bufnr)
vim.api.nvim_put({ "[" .. entry.ordinal:gsub(":$", "") .. "]" .. "(" .. entry.display:gsub("^(%W+)%s+", "%1") .. ")" }, "c", false, true)
vim.api.nvim_feedkeys("ea", "t", false)
vim.api.nvim_feedkeys("f)a", "t", false)
end)
return true
end,
Expand Down

0 comments on commit 965fbe0

Please sign in to comment.