diff options
author | Joe Wilm <joe@jwilm.com> | 2017-08-09 13:24:42 -0500 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-08-11 08:29:56 -0700 |
commit | 6de7ee0c511f3b7f2c01822b73da04eaaaf3ecf7 (patch) | |
tree | 1172367f30287028164ed26f05b551219bf28a94 /src | |
parent | dd7eb92d68e8c8292d6359f42a74888878de0560 (diff) | |
download | alacritty-6de7ee0c511f3b7f2c01822b73da04eaaaf3ecf7.tar.gz alacritty-6de7ee0c511f3b7f2c01822b73da04eaaaf3ecf7.zip |
Rename some variables for clarity
Diffstat (limited to 'src')
-rw-r--r-- | src/term/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs index e1573cfe..6b39d939 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -1557,25 +1557,25 @@ impl ansi::Handler for Term { #[inline] fn save_cursor_position(&mut self) { trace!("CursorSave"); - let mut holder = if self.alt { + let mut cursor = if self.alt { &mut self.cursor_save_alt } else { &mut self.cursor_save }; - *holder = self.cursor; + *cursor = self.cursor; } #[inline] fn restore_cursor_position(&mut self) { trace!("CursorRestore"); - let holder = if self.alt { + let source = if self.alt { &self.cursor_save_alt } else { &self.cursor_save }; - self.cursor = *holder; + self.cursor = *source; self.cursor.point.line = min(self.cursor.point.line, self.grid.num_lines() - 1); self.cursor.point.col = min(self.cursor.point.col, self.grid.num_cols() - 1); } |