Error executing vim.schedule lua callback: ...art\ChatGPT.nvim/lua/chatgpt/flows/actions/chat/init.lua:144: Invalid 'start_col': out of range
stack traceback:
[C]: in function 'nvim_buf_set_text'
...art\ChatGPT.nvim/lua/chatgpt/flows/actions/chat/init.lua:144: in function <...art\ChatGPT.nvim/lua/chatgpt/flows/actions/chat/init.lua:78>
ChatGPTRun with
strategy: replace
throwsI guess this is caused by
self:get_visual_selection()
returning 1-indexed rows/cols butnvim_buf_set_text
takes 0-indexed positions?Doing something like this fixes it (edited to remove
end_col - 1
)Version: NVIM v0.9.0-dev-1230+gd1e0f7454 ChatGPT.nvim: b5f35e4