[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sly a50a5e3 2/3: Fix SLY buttons/context menus when using
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sly a50a5e3 2/3: Fix SLY buttons/context menus when using terminal mouse support |
Date: |
Thu, 4 Feb 2021 12:57:09 -0500 (EST) |
branch: elpa/sly
commit a50a5e36ce12f6cc592fc67d5e51cca6bf310055
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>
Fix SLY buttons/context menus when using terminal mouse support
* lib/sly-buttons.el (sly-button-at): Fix for terminal mouse support.
---
lib/sly-buttons.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sly-buttons.el b/lib/sly-buttons.el
index ebcd0fd..4bc7a19 100644
--- a/lib/sly-buttons.el
+++ b/lib/sly-buttons.el
@@ -31,7 +31,7 @@
(defun sly-button-at (&optional pos type no-error)
(let ((button (button-at (or pos
(if (mouse-event-p last-input-event)
- (posn-point (event-end last-input-event))
+ (posn-point (event-start last-input-event))
(point))))))
(cond ((and button type
(button-type-subtype-p (button-type button) type))