From 54e1eb02d918fb38b4e71c87ea9a8fe8f499dc5f Mon Sep 17 00:00:00 2001 From: Miguel Date: Thu, 8 Feb 2024 03:18:18 -0300 Subject: [PATCH] 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. --- modes/vterm/evil-collection-vterm.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modes/vterm/evil-collection-vterm.el b/modes/vterm/evil-collection-vterm.el index ccc9edc..785f577 100644 --- a/modes/vterm/evil-collection-vterm.el +++ b/modes/vterm/evil-collection-vterm.el @@ -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")