summaryrefslogtreecommitdiff
path: root/lisp/mouse-sel.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mouse-sel.el')
-rw-r--r--lisp/mouse-sel.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mouse-sel.el b/lisp/mouse-sel.el
index fe557ee755e..93c59a9b633 100644
--- a/lisp/mouse-sel.el
+++ b/lisp/mouse-sel.el
@@ -574,7 +574,7 @@ If `mouse-yank-at-point' is non-nil, insert at point instead."
(defun mouse-sel-lost-selection-hook (selection)
"Remove the overlay for a lost selection."
- (let ((overlay (mouse-sel-selection-overlay selection)))
+ (let ((overlay (mouse-sel-selection-overlay (car selection))))
(delete-overlay overlay)))
(add-hook 'x-lost-selection-hooks 'mouse-sel-lost-selection-hook)