VonHeikemen / searchbox.nvim

Start your search from a more comfortable place, say the upper right corner?

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cursor position outside buffer (search-types.lua:189)

beauwilliams opened this issue · comments

commented

Using this command :SearchBoxReplace confirm=menu visual_mode=true

Any clue what issue might be?

commented

Okay this works. Odd (added : at end by mistake, but it fixed the problem)

:SearchBoxReplace confirm=menu visual_mode=true:

As far as I can tell this happens when the function that gives the range of the selected returns an invalid value. It should only happen when there is no record of any selected text. I've added a validation for this, now it should show an error message, and prevent the input from showing up.

commented

Ah I see, all good then thanks for fixing that up :)