From 14a5ad139caa96e253c3073f82ddba0ceb4f3cff Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 6 Nov 2021 22:44:31 +0100 Subject: [PATCH] Fix typo in previous yank-media--get-selection change * lisp/yank-media.el (yank-media--get-selection): Fix typo in previous change. --- lisp/yank-media.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/yank-media.el b/lisp/yank-media.el index bc104a30c9f..aba0fdc2bfb 100644 --- a/lisp/yank-media.el +++ b/lisp/yank-media.el @@ -77,7 +77,7 @@ the `register-yank-media-handler' mechanism." (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)) -- 2.39.2