From a2f2286c40725244257f46d3a27a730e73f9f596 Mon Sep 17 00:00:00 2001 From: jixiuf Date: Tue, 12 Apr 2022 19:40:21 +0800 Subject: [PATCH] make vterm-cursor-in-command-buffer-p work when shell buffer is multi-line --- vterm.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/vterm.el b/vterm.el index 27d8109..4b98bea 100644 --- a/vterm.el +++ b/vterm.el @@ -1622,12 +1622,9 @@ More information see `vterm--prompt-tracking-enabled-p' and "Check whether cursor in command buffer area." (save-excursion (vterm-reset-cursor-point) - (let ((promp-pt (vterm--get-prompt-point)) - eol) + (let ((promp-pt (vterm--get-prompt-point))) (when promp-pt - (goto-char promp-pt) - (setq eol (vterm--get-end-of-line)) - (<= promp-pt (or pt (vterm--get-cursor-point)) eol))))) + (<= promp-pt (or pt (vterm--get-cursor-point))))))) (defun vterm-beginning-of-line () "Move point to the beginning of the line.