Skip to content

Commit 11b0739

Browse files
committed
Revert "Fix #352 again (#357)"
This reverts commit 5fa27b5.
1 parent 9bb8467 commit 11b0739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

copilot.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,8 +989,8 @@ provided."
989989
(beginning-of-line)
990990
(not (= (point) completion-start))))
991991
(setq start completion-start)
992+
(setq end (- end (- (point) completion-start)))
992993
(delete-region completion-start (point)))
993-
(setq start end)
994994
(copilot--async-request 'notifyAccepted (list :uuid uuid))
995995
(copilot-clear-overlay t)
996996
(if (derived-mode-p 'vterm-mode)

0 commit comments

Comments
 (0)