diff options
| author | Fice T <fice-t@protonmail.com> | 2017-11-11 23:56:31 -0600 |
|---|---|---|
| committer | Fice T <fice-t@protonmail.com> | 2017-11-11 23:56:31 -0600 |
| commit | d8b253665e261c1e52bf42ed533ec8afbbb9e071 (patch) | |
| tree | 969100b5030d754715849b22e43b6de0ff3e6cef /evil-commands.el | |
| parent | b375072a23679699f1545a323ecb86f057ea3c95 (diff) | |
Decode mouse control sequences
`xterm-mouse-mode' uses control sequences for mouse events which need to be
decoded, otherwise each character in the sequence will be executed as a command.
Fixes #960.
Diffstat (limited to 'evil-commands.el')
| -rw-r--r-- | evil-commands.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/evil-commands.el b/evil-commands.el index b0cb82b..ebbdd86 100644 --- a/evil-commands.el +++ b/evil-commands.el @@ -4202,7 +4202,7 @@ DO-MOUSE-DRAG-REGION-POST-PROCESS should only be used by ;; Track the mouse until we get a non-movement event. (track-mouse (while (progn - (setq event (read-event)) + (setq event (read-key)) (or (mouse-movement-p event) (memq (car-safe event) '(switch-frame select-window)))) (unless (evil-visual-state-p) |
