summaryrefslogtreecommitdiff
path: root/modes/vterm
diff options
context:
space:
mode:
authorMiguel <miguelangelrissomartinez@gmail.com>2024-02-08 03:18:18 -0300
committerYoumu <condy0919@gmail.com>2024-02-24 00:27:34 +0800
commit54e1eb02d918fb38b4e71c87ea9a8fe8f499dc5f (patch)
treecf1f03a5a005a8910dd7e8f5d7c295f65acf4035 /modes/vterm
parent16d2cecda7c3290dd99ef184e958a50616a9d958 (diff)
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.
Diffstat (limited to 'modes/vterm')
-rw-r--r--modes/vterm/evil-collection-vterm.el6
1 files 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")