Skip to content

Fix 'Vim:E385: search hit BOTTOM without match' when jumping to the last match in the buffer

Vaso Putica requested to merge vasac/svart.nvim:update-register into master

When jumping to the last match in the buffer following error occurs:

Error executing Lua callback: vim/_editor.lua:0: nvim_exec2(): Vim:E385: search hit BOTTOM without match for: 

Replacing vim.cmd("/"... with vim.fn.setreg("/"... solves the issue.

Merge request reports