copilot-emacs / copilot.el

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

fix: weird capitalization bug (#300) #309

Open ultronozm opened 1 month ago

ultronozm commented 1 month ago

This patch saves the match data inside copilot--on-doc-change, fixing a bizarre bug that I encountered only on Windows (#300). Compare with the second paragraph of https://www.gnu.org/software/emacs/manual/html_node/elisp/Change-Hooks.html.

ultronozm commented 1 month ago

Please let me know if I've misunderstood, but the test failure doesn't seem like it's my fault.