diff --git a/copilot.el b/copilot.el index d65c14b9..2bc0bb44 100644 --- a/copilot.el +++ b/copilot.el @@ -800,8 +800,8 @@ provided." (beginning-of-line) (not (= (point) completion-start)))) (setq start completion-start) - (setq end (- end (- (point) completion-start))) (delete-region completion-start (point))) + (setq start end) (copilot--async-request 'notifyAccepted (list :uuid uuid)) (copilot-clear-overlay t) (if (derived-mode-p 'vterm-mode)