diff options
| author | Lin Sun <sunlin7@hotmail.com> | 2024-04-11 06:58:09 +0000 |
|---|---|---|
| committer | Gabriele Bozzola <9167485+Sbozzolo@users.noreply.github.com> | 2026-04-05 18:34:56 -0700 |
| commit | 54c29d14bca05bdd8ae60cda01715d727831e3f9 (patch) | |
| tree | 2601e2cd00a11de956740a8fabfd6cf61099442b | |
| parent | a01a2894a1c1e81a39527835a9169e35b7ec5dec (diff) | |
| -rw-r--r-- | vterm.el | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -1243,12 +1243,9 @@ Argument ARG is passed to `yank'" But when clicking to the unused area below the last prompt, move the cursor to the prompt area." (interactive "e\np") - (let ((pt (mouse-set-point event promote-to-region))) - (if (= (count-words pt (point-max)) 0) - (vterm-reset-cursor-point) - pt)) - ;; Otherwise it selects text for every other click - (keyboard-quit)) + (if (> (count-words (posn-point (event-end event)) (point-max)) 0) + (mouse-set-point event promote-to-region) + (vterm-reset-cursor-point))) (defun vterm-send-string (string &optional paste-p) "Send the string STRING to vterm. |
