summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-01-17 21:45:44 +0800
committerPo Lu <luangruo@yahoo.com>2022-01-17 21:45:44 +0800
commitab17e353253a88d92f68b3909b27ded9e536fb28 (patch)
treee1261e51b8d6b9e9dfde8b217662d727d5ef4f5c /lisp
parent5205be51060f86dbcf6fa2dd5b7b4da1256f0807 (diff)
parentf393d0d441c3746f98007ae54341870a296bf809 (diff)
downloademacs-ab17e353253a88d92f68b3909b27ded9e536fb28.tar.gz
emacs-ab17e353253a88d92f68b3909b27ded9e536fb28.tar.bz2
emacs-ab17e353253a88d92f68b3909b27ded9e536fb28.zip
Merge from origin/emacs-28
f393d0d441 Fix regression leading to flickering tooltips when the mou...
Diffstat (limited to 'lisp')
-rw-r--r--lisp/tooltip.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/tooltip.el b/lisp/tooltip.el
index 1cf16fdb5d2..b8590529597 100644
--- a/lisp/tooltip.el
+++ b/lisp/tooltip.el
@@ -383,9 +383,12 @@ MSG is either a help string to display, or nil to cancel the display."
;; Cancel display. This also cancels a delayed tip, if
;; there is one.
(tooltip-hide))
- ((equal-including-properties previous-help msg)
- ;; Same help as before (but possibly the mouse has moved).
- ;; Keep what we have.
+ ((equal previous-help msg)
+ ;; Same help as before (but possibly the mouse has
+ ;; moved or the text properties have changed). Keep
+ ;; what we have. If only text properties have changed,
+ ;; the tooltip won't be updated, but that shouldn't
+ ;; occur.
)
(t
;; A different help. Remove a previous tooltip, and