From 6e708d2119ce0c839a89858a42a6b124a5cf48f4 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Thu, 22 Dec 2016 13:43:06 -0500 Subject: Implement visual component of mouse selections This adds the ability to click and drag with the mouse and have the effect of visually selecting text. The ability to copy the selection into a clipboard buffer is not yet implemented. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 18a7e322..54f4abc8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -150,7 +150,7 @@ fn run(mut config: Config, options: cli::Options) -> Result<(), Box> { display.handle_resize(&mut terminal, &mut [&mut pty, &mut processor]); // Draw the current state of the terminal - display.draw(terminal, &config); + display.draw(terminal, &config, &processor.selection); } // Begin shutdown if the flag was raised. -- cgit