Skip to content

Commit

Permalink
We need replace whole line of current point with codeium label.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Apr 21, 2023
1 parent e3338fa commit e13cc34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion acm/acm-backend-codeium.el
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@
acm-backend-codeium-items))

(defun acm-backend-codeium-candidate-expand (candidate-info _)
(delete-region (- (point) (length (plist-get candidate-info :old_prefix))) (point))
;; We need replace whole line of current point with codeium label.
(delete-region (line-beginning-position) (line-end-position))
(insert (plist-get candidate-info :label))

(when acm-backend-codeium-accept
Expand Down

0 comments on commit e13cc34

Please sign in to comment.