From 9e89aaa477369b20a06f4b9f636d7fd543c4c985 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Sun, 28 Apr 2019 20:21:39 +0000 Subject: Switch from copypasta to rust-clipboard This switches our own `copypasta` crate with the more standardized `clipboard` library, which allows us to get rid of the `xclip` dependency on X11. Additionally, this lays the foundation for native Wayland clipboard support once the clipboard crate is updated (or a fork is created). Fixes #5. --- alacritty_terminal/src/url.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'alacritty_terminal/src/url.rs') diff --git a/alacritty_terminal/src/url.rs b/alacritty_terminal/src/url.rs index d3caf9fc..088cf657 100644 --- a/alacritty_terminal/src/url.rs +++ b/alacritty_terminal/src/url.rs @@ -148,6 +148,7 @@ mod tests { use unicode_width::UnicodeWidthChar; + use crate::clipboard::Clipboard; use crate::grid::Grid; use crate::index::{Column, Line, Point}; use crate::message_bar::MessageBuffer; @@ -166,7 +167,8 @@ mod tests { }; let width = input.chars().map(|c| if c.width() == Some(2) { 2 } else { 1 }).sum(); - let mut term = Term::new(&Default::default(), size, MessageBuffer::new()); + let mut term = + Term::new(&Default::default(), size, MessageBuffer::new(), Clipboard::new_nop()); let mut grid: Grid = Grid::new(Line(1), Column(width), 0, Cell::default()); let mut i = 0; -- cgit