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." ...@@ -93,6 +93,7 @@ any selection."
;; That would make yank a no-op. ;; That would make yank a no-op.
(when (and (string= (buffer-substring-no-properties (point) (mark)) (when (and (string= (buffer-substring-no-properties (point) (mark))
(car kill-ring)) (car kill-ring))
(fboundp 'mouse-region-match)
(mouse-region-match)) (mouse-region-match))
(current-kill 1)) (current-kill 1))
(delete-active-region)) (delete-active-region))
......
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