]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix regression leading to flickering tooltips when the mouse is moved
authorPo Lu <luangruo@yahoo.com>
Mon, 17 Jan 2022 13:42:31 +0000 (21:42 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 17 Jan 2022 13:42:31 +0000 (21:42 +0800)
* lisp/tooltip.el (tooltip-show-help): Compare string with
previous tooltip string ignoring properties.

lisp/tooltip.el

index 1840016d7cf70cd7b1ffce72ff011cdda17479aa..d1628842307e51157578150637a188b305a9014b 100644 (file)
@@ -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