diff options
Diffstat (limited to 'src/term')
-rw-r--r-- | src/term/cell.rs | 6 | ||||
-rw-r--r-- | src/term/mod.rs | 26 |
2 files changed, 16 insertions, 16 deletions
diff --git a/src/term/cell.rs b/src/term/cell.rs index 16e08cba..a04eb8e1 100644 --- a/src/term/cell.rs +++ b/src/term/cell.rs @@ -92,9 +92,9 @@ impl Cell { pub fn new(c: char, fg: Color, bg: Color) -> Cell { Cell { - c: c, - bg: bg, - fg: fg, + c, + bg, + fg, flags: Flags::empty(), } } diff --git a/src/term/mod.rs b/src/term/mod.rs index b11733f6..00244c8a 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -123,15 +123,15 @@ impl<'a> RenderableCellsIter<'a> { let cursor_index = Linear(cursor.line.0 * grid.num_cols().0 + cursor.col.0); RenderableCellsIter { - grid: grid, - cursor: cursor, - cursor_index: cursor_index, - mode: mode, + grid, + cursor, + cursor_index, + mode, line: Line(0), column: Column(0), - selection: selection, - config: config, - colors: colors, + selection, + config, + colors, cursor_cells: ArrayDeque::new(), }.initialize(cursor_style) } @@ -396,13 +396,13 @@ impl<'a> Iterator for RenderableCellsIter<'a> { } return Some(RenderableCell { - line: line, - column: column, + line, + column, flags: cell.flags, c: cell.c, fg: fg_rgb, bg: bg_rgb, - bg_alpha: bg_alpha, + bg_alpha, }) } @@ -816,7 +816,7 @@ impl Term { visual_bell: VisualBell::new(config), next_is_urgent: None, input_needs_wrap: false, - grid: grid, + grid, alt_grid: alt, alt: false, font_size: config.font().size(), @@ -825,9 +825,9 @@ impl Term { cursor: Default::default(), cursor_save: Default::default(), cursor_save_alt: Default::default(), - tabs: tabs, + tabs, mode: Default::default(), - scroll_region: scroll_region, + scroll_region, size_info: size, colors: color::List::from(config.colors()), color_modified: [false; color::COUNT], |