jackMort / ChatGPT.nvim

ChatGPT Neovim Plugin: Effortless Natural Language Generation with OpenAI's ChatGPT API
Apache License 2.0
3.75k stars 312 forks source link

fix: unmodifiable error #225

Open fengwk opened 1 year ago

fengwk commented 1 year ago

Do not write when the buffer cannot be modified. A common scenario is that inputting new questions before the last question has been answered will generate a large amount of error information.

joeldrotleff commented 9 months ago

Works great for me! I notice this error anytime a prompt is being answered by gpt and I navigate to the "toggle sessions" window, and it can't be dismissed (just keeps generating new errors). I can't repro the bug with this fix - nice work