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:
parent
16d2cecda7
commit
54e1eb02d9
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue