copilot-emacs / copilot.el

An unofficial Copilot plugin for Emacs.
MIT License
1.71k stars 122 forks source link

Verify buffer is present when running the success func #319

Closed Gleek closed 3 days ago

Gleek commented 1 week ago

This is a fix for the issue where copilot is triggered in temporary buffer that could get killed before the success function is called. Eg: Capture, commit-editmsg buffers etc.

LemonBreezes commented 3 days ago

I am having this issue as well so it would be great if we could have this merged.