* lisp/yank-media.el (yank-media--get-selection): Fix typo in
previous change.
(defun yank-media--get-selection (type)
(when-let ((data (gui-get-selection 'CLIPBOARD type)))
(when-let ((charset (get-text-property 0 'charset data)))
- (setq date (encode-coding-string data charset)))
+ (setq data (encode-coding-string data charset)))
;; Some programs add a nul character at the end of text/*
;; selections. Remove that.
(when (and (string-match-p "\\`text/" (symbol-name type))