Merge pull request #4433 from yangsheng6810/fix-xclip-not-found

Do not panic when xclip is not available
This commit is contained in:
Henrik Lissner 2020-12-15 04:14:40 -05:00 committed by GitHub
commit 0c9256411d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@
;; wl-copy, termux-clipboard-get, or getclip (cygwin); depending on what ;; wl-copy, termux-clipboard-get, or getclip (cygwin); depending on what
;; is available. ;; is available.
(and (require 'xclip nil t) (and (require 'xclip nil t)
(xclip-mode +1))))) (with-demoted-errors "%s" (xclip-mode +1))))))
(when (featurep! :editor evil) (when (featurep! :editor evil)
;; Fix cursor shape-changing in the terminal. Only supported in XTerm, Gnome ;; Fix cursor shape-changing in the terminal. Only supported in XTerm, Gnome