David-Kunz / gen.nvim

Neovim plugin to generate text using LLMs with customizable prompts
The Unlicense
977 stars 62 forks source link

fix: get buf text in v-mode #80

Closed Mr-LLLLL closed 3 months ago

Mr-LLLLL commented 3 months ago

{end_col} is exclusive by nvim_buf_get_text and nvim_buf_set_text document

David-Kunz commented 3 months ago

Thank you, @Mr-LLLLL ❤️

David-Kunz commented 3 months ago

Hi @Mr-LLLLL ,

I had to revert this change as it causes problems when in V mode (v mode works correctly).

David-Kunz commented 3 months ago

Ok, I fixed it again :)

Mr-LLLLL commented 3 months ago

I am sorry for this, i forget test V mode. thank you fix this. :)