copilot-emacs / copilot.el

An unofficial Copilot plugin for Emacs.
MIT License
1.79k stars 126 forks source link

copilot clobbers closing parentheses when there is only 1 character left #77

Closed LemonBreezes closed 1 year ago

LemonBreezes commented 1 year ago

Hello. With the current code, if I am writing Lisp code, copilot offers an autocompletion of 't' and I type the character 't', the rest of the line including closing delimiters is deleted. It would be helpful if we could turn off this "autocompletion of the last character" behavior.

zerolfx commented 1 year ago

Could you provide a detailed example, like what is on your screen before and after typing 't'? It would be better if you could record an GIF.

LemonBreezes commented 1 year ago

Could you provide a detailed example, like what is on your screen before and after typing 't'? It would be better if you could record an GIF.

Sure. I just recorded a rudimentary example with my phone (not sure how to make a GIF).

https://user-images.githubusercontent.com/29102529/211169968-23de18b6-c32f-4870-9a4d-e98611ff734e.mp4

zerolfx commented 1 year ago

Fixed. The issue was introduced in #73.