summaryrefslogtreecommitdiff
path: root/src/term
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2017-01-06 15:48:23 -0800
committerManish Goregaokar <manishsmail@gmail.com>2017-01-06 20:17:10 -0800
commitc579d079939b5d4ee3127579de732f037e612c28 (patch)
treec5494720937e0c531c305663823761b137289a31 /src/term
parentee5a9f133869809385bef96fcded4f22ddcc003f (diff)
downloadalacritty-c579d079939b5d4ee3127579de732f037e612c28.tar.gz
alacritty-c579d079939b5d4ee3127579de732f037e612c28.zip
Remove need for range_contains feature
Diffstat (limited to 'src/term')
-rw-r--r--src/term/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index 4c2afc35..975ba376 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -20,7 +20,7 @@ use std::io;
use ansi::{self, Color, NamedColor, Attr, Handler};
use grid::{Grid, ClearRegion, ToRange};
-use index::{self, Point, Column, Line, Linear, IndexRange};
+use index::{self, Point, Column, Line, Linear, IndexRange, Contains};
use selection::{Span, Selection};
pub mod cell;
@@ -129,7 +129,7 @@ impl<'a> Iterator for RenderableCellsIter<'a> {
self.column += 1;
let selected = self.selection.as_ref()
- .map(|range| range.contains(index))
+ .map(|range| range.contains_(index))
.unwrap_or(false);
// Skip empty cells
@@ -812,7 +812,7 @@ impl ansi::Handler for Term {
#[inline]
fn insert_blank_lines(&mut self, lines: Line) {
debug_println!("insert_blank_lines: {}", lines);
- if self.scroll_region.contains(self.cursor.line) {
+ if self.scroll_region.contains_(self.cursor.line) {
let origin = self.cursor.line;
self.scroll_down_relative(origin, lines);
}
@@ -821,7 +821,7 @@ impl ansi::Handler for Term {
#[inline]
fn delete_lines(&mut self, lines: Line) {
debug_println!("delete_lines: {}", lines);
- if self.scroll_region.contains(self.cursor.line) {
+ if self.scroll_region.contains_(self.cursor.line) {
let origin = self.cursor.line;
self.scroll_up_relative(origin, lines);
}