aboutsummaryrefslogtreecommitdiff
path: root/src/term/mod.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2017-01-06 15:25:04 -0800
committerManish Goregaokar <manishsmail@gmail.com>2017-01-06 20:17:10 -0800
commit800b65622cd8881f30d4d02e87c1ba4e4c9d27d2 (patch)
treed5532beac05b59e5bb454beb287e314d1b917093 /src/term/mod.rs
parent085800c330e7f496ecd2298de4762a7cafcbc13a (diff)
downloadalacritty-800b65622cd8881f30d4d02e87c1ba4e4c9d27d2.tar.gz
alacritty-800b65622cd8881f30d4d02e87c1ba4e4c9d27d2.zip
Remove need for step_by feature
Diffstat (limited to 'src/term/mod.rs')
-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 690c2f10..4c2afc35 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};
+use index::{self, Point, Column, Line, Linear, IndexRange};
use selection::{Span, Selection};
pub mod cell;
@@ -286,7 +286,7 @@ impl Term {
let grid = Grid::new(num_lines, num_cols, &template);
- let mut tabs = (Column(0)..grid.num_cols())
+ let mut tabs = IndexRange::from(Column(0)..grid.num_cols())
.map(|i| (*i as usize) % TAB_SPACES == 0)
.collect::<Vec<bool>>();
@@ -424,7 +424,7 @@ impl Term {
// Starting line
res.append(&self.grid, start.line, start.col..);
- let middle_range = (start.line + 1)..(end.line);
+ let middle_range = IndexRange::from((start.line + 1)..(end.line));
for line in middle_range {
res.append(&self.grid, line, ..);
}
@@ -507,7 +507,7 @@ impl Term {
self.cursor.col = limit(self.cursor.col, Column(0), num_cols);
// Recreate tabs list
- self.tabs = (Column(0)..self.grid.num_cols())
+ self.tabs = IndexRange::from(Column(0)..self.grid.num_cols())
.map(|i| (*i as usize) % TAB_SPACES == 0)
.collect::<Vec<bool>>();