vterm: Visual consistency for append

evil-collection-vterm-append doesn't work, and evil-collection-vterm-append-line
doesn't correctly display where the cursor is located. This fixes both
issues.
This commit is contained in:
Miguel 2024-02-08 03:18:18 -03:00 committed by Youmu
parent 16d2cecda7
commit 54e1eb02d9
1 changed files with 3 additions and 3 deletions

View File

@ -100,14 +100,14 @@ after the prompt."
(defun evil-collection-vterm-append ()
"Append character after cursor."
(interactive)
(vterm-goto-char (point))
(call-interactively #'evil-append))
(vterm-goto-char (1+ (point)))
(call-interactively #'evil-insert))
(defun evil-collection-vterm-append-line ()
"Append character at end-of-line."
(interactive)
(vterm-goto-char (vterm--get-end-of-line))
(call-interactively #'evil-append))
(call-interactively #'evil-insert))
(declare-function vterm-yank "vterm")