nvim-telescope / telescope-live-grep-args.nvim

Live grep with args
726 stars 40 forks source link

fix: extra char when vim option 'selection' = exclusive #88

Open adoyle-h opened 2 months ago

adoyle-h commented 2 months ago

Description

When :set selection=exclusive, the returned value from get_visual() will contain an extra char.

Use vim.fn.getregion which follows vim option 'selection' to fix this issue.

Type of change

Configuration:

Checklist:

adoyle-h commented 2 months ago

@weeman1337 Can you review this PR? Thanks