We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey, thanks for the plugin.
I just encountered the problem, I was visual selecting a text from right to left.
I think here lies the problem:
local _, ls, cs = unpack(vim.fn.getpos("v")) local _, le, ce = unpack(vim.fn.getpos("."))
when you select text from right to left, then cs is bigger than ce.
cs
ce
so there needs to be a condition:
if cs > ce swap(cs,ce) swap(ls,le)
https://github.com/nvim-telescope/telescope-live-grep-args.nvim/blob/master/lua/telescope-live-grep-args/shortcuts.lua#L8
nvim 0.9.4
ubuntu 22
latest
.
No response
The text was updated successfully, but these errors were encountered:
Thank you for reporting the issue @Fabian-programmer
This bug was already reported before #63 Also a pull request exists, which should be merged soon.
Sorry, something went wrong.
Duplicate of #63
No branches or pull requests
Description
Hey, thanks for the plugin.
I just encountered the problem, I was visual selecting a text from right to left.
I think here lies the problem:
when you select text from right to left, then
cs
is bigger thance
.so there needs to be a condition:
https://github.com/nvim-telescope/telescope-live-grep-args.nvim/blob/master/lua/telescope-live-grep-args/shortcuts.lua#L8
Neovim version
Operating system and version
ubuntu 22
Telescope version / branch / rev
latest
Telescope live grep args version / branch / rev
latest
checkhealth telescope
Steps to reproduce
.
Expected behavior
No response
Actual behavior
.
Minimal config
The text was updated successfully, but these errors were encountered: