lib/textbringer/commands/clipboard.rb in textbringer-1.3.0 vs lib/textbringer/commands/clipboard.rb in textbringer-1.4.1

- old
+ new

@@ -5,11 +5,10 @@ require "clipboard" module Textbringer module Commands CLIPBOARD_AVAILABLE = - Clipboard.implementation.name != "Clipboard::Linux" || - (ENV["DISPLAY"] && system("which xclip > /dev/null 2>&1")) + Clipboard.implementation.name != "Clipboard::File" if CLIPBOARD_AVAILABLE GLOBAL_MAP.define_key("\M-w", :clipboard_copy_region) GLOBAL_MAP.define_key("\C-w", :clipboard_kill_region) GLOBAL_MAP.define_key(?\C-k, :clipboard_kill_line)