Commit 614a773a authored by Juri Linkov's avatar Juri Linkov
Browse files

(delete-selection-pre-hook): Check if mouse-region-match is fbound

to not fail on mouseless tty.
parent 28681e35
......@@ -93,6 +93,7 @@ any selection."
;; That would make yank a no-op.
(when (and (string= (buffer-substring-no-properties (point) (mark))
(car kill-ring))
(fboundp 'mouse-region-match)
(current-kill 1))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment