aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2018-03-25 21:09:18 +0200
committerJoe Wilm <joe@jwilm.com>2018-06-02 09:56:50 -0700
commitf66e3e457bdda808cc3f994a02fd6f7ce5ba381e (patch)
tree2fdb38f60fe6c2f11c967c1d3adfe6c3bb64af9a /src/input.rs
parent54314380f07f25b22591775931994196c30240ed (diff)
downloadalacritty-f66e3e457bdda808cc3f994a02fd6f7ce5ba381e.tar.gz
alacritty-f66e3e457bdda808cc3f994a02fd6f7ce5ba381e.zip
Fix selection tests
The latest selection changes broke a few tests, these have been corrected. Two of these tests were broken because they assumed different span types, the test have been changed here because the result was correct. One test did actually catch a bug where selection of two cells from right to left would incorrectly mark the cells as selected even though they should not have been, this has been fixed in the `simple_span` method.
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input.rs b/src/input.rs
index 047c81aa..90384198 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -664,6 +664,7 @@ mod tests {
use config::{self, Config, ClickHandler};
use index::{Point, Side};
use selection::Selection;
+ use grid::Scroll;
use super::{Action, Binding, Processor};
@@ -717,6 +718,10 @@ mod tests {
self.last_action = MultiClick::TripleClick;
}
+ fn scroll(&mut self, scroll: Scroll) {
+ self.terminal.scroll_display(scroll);
+ }
+
fn mouse_coords(&self) -> Option<Point> {
self.terminal.pixels_to_coords(self.mouse.x as usize, self.mouse.y as usize)
}