summaryrefslogtreecommitdiff
path: root/lisp/tooltip.el
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-01-17 21:42:31 +0800
committerPo Lu <luangruo@yahoo.com>2022-01-17 21:42:31 +0800
commitf393d0d441c3746f98007ae54341870a296bf809 (patch)
tree1cac31fda49a9d97a25b66c2a2bbab2d3d1ddb90 /lisp/tooltip.el
parent9e64aeff40872e5080fa04015234103cb9bcf3bf (diff)
downloademacs-f393d0d441c3746f98007ae54341870a296bf809.tar.gz
Fix regression leading to flickering tooltips when the mouse is moved
* lisp/tooltip.el (tooltip-show-help): Compare string with previous tooltip string ignoring properties.
Diffstat (limited to 'lisp/tooltip.el')
-rw-r--r--lisp/tooltip.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/tooltip.el b/lisp/tooltip.el
index 1840016d7cf..d1628842307 100644
--- a/lisp/tooltip.el
+++ b/lisp/tooltip.el
@@ -378,9 +378,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