]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix tooltip face overwriting dragged text strings during mouse DND
authorPo Lu <luangruo@yahoo.com>
Fri, 13 May 2022 12:57:24 +0000 (20:57 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 13 May 2022 12:57:24 +0000 (20:57 +0800)
* lisp/mouse.el (mouse-drag-and-drop-region): Copy
`text-tooltip' before showing it.  Do not merge to master.

lisp/mouse.el

index 1b9542b9b82f9afb8627af75c121e098afb0f9f4..e5ea5475f43b497e871e2f86fc9689d81ac88025 100644 (file)
@@ -3049,7 +3049,7 @@ is copied instead of being cut."
 
           ;; Show a tooltip.
           (if mouse-drag-and-drop-region-show-tooltip
-              (tooltip-show text-tooltip)
+              (tooltip-show (copy-sequence text-tooltip))
             (tooltip-hide))
 
           ;; Show cursor and highlight the original region.