diff options
author | Joe Wilm <joe@jwilm.com> | 2018-03-05 09:26:36 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2018-06-02 09:32:29 -0700 |
commit | ef3c384540b31004a423ada778ed5c02d90e68c6 (patch) | |
tree | 3779c8c4f1e887103768bde388a67feb67e2a1d7 | |
parent | 54d50ed3be810861d3c2fa500c3fcc8e802198d9 (diff) | |
download | alacritty-ef3c384540b31004a423ada778ed5c02d90e68c6.tar.gz alacritty-ef3c384540b31004a423ada778ed5c02d90e68c6.zip |
Style cleanup
-rw-r--r-- | src/term/mod.rs | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs index 220dd8e6..493086a7 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -135,33 +135,28 @@ impl<'a> RenderableCellsIter<'a> { }.initialize(cursor_style) } - fn push_cursor_cells( - &mut self, - original_cell: Cell, - cursor_cell: Cell, - wide_cell: Cell, - ) { + fn push_cursor_cells(&mut self, original: Cell, cursor: Cell, wide: Cell) { // Prints the char under the cell if cursor is situated on a non-empty cell self.cursor_cells.push_back(Indexed { line: self.cursor.line, column: self.cursor.col, - inner: original_cell, + inner: original, }).expect("won't exceed capacity"); // Prints the cursor self.cursor_cells.push_back(Indexed { line: self.cursor.line, column: self.cursor.col, - inner: cursor_cell, + inner: cursor, }).expect("won't exceed capacity"); // If cursor is over a wide (2 cell size) character, // print the second cursor cell - if self.is_wide_cursor(&cursor_cell) { + if self.is_wide_cursor(&cursor) { self.cursor_cells.push_back(Indexed { line: self.cursor.line, column: self.cursor.col + 1, - inner: wide_cell, + inner: wide, }).expect("won't exceed capacity"); } } |