summaryrefslogtreecommitdiff
path: root/lisp/wid-edit.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-09-26 16:36:31 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-09-26 16:36:31 +0200
commit18718fee7222dc32b30b7be2e443022db5d82f67 (patch)
treed47999dee72bb1418aebf3f8b321fb02a0e1e788 /lisp/wid-edit.el
parent2de618ed5d3a160d54c7b5bb69f961e4ff6cc2f7 (diff)
downloademacs-18718fee7222dc32b30b7be2e443022db5d82f67.tar.gz
Fix mouse highlighting in Customize buffers
* lisp/wid-edit.el (widget-button-click): Remove a newly-introduced check that made mouse highlights no longer work (bug#43612). It's unclear what the check was trying to fix.
Diffstat (limited to 'lisp/wid-edit.el')
-rw-r--r--lisp/wid-edit.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index 8ad99f49aa1..8e2055f9185 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -1057,9 +1057,8 @@ If nothing was called, return non-nil."
pos 'button (and (windowp (posn-window start))
(window-buffer (posn-window start))))))
- (when (and (widget-get button :button-overlay)
- (or (null button)
- (widget-button--check-and-call-button event button)))
+ (when (or (null button)
+ (widget-button--check-and-call-button event button))
(let ((up t)
command)
;; Mouse click not on a widget button. Find the global