aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/term/cell.rs
diff options
context:
space:
mode:
authorKirill Chibisov <wchibisovkirill@gmail.com>2019-11-17 03:04:16 +0300
committerChristian Duerr <contact@christianduerr.com>2019-11-17 01:04:16 +0100
commit495a6f3526f5127c342d67980d0335f1ed4e235b (patch)
tree548846bfec427e786a8d90abdacec4ffbd11eafe /alacritty_terminal/src/term/cell.rs
parent48861e463311145a653350688dc4bad83a528d91 (diff)
downloadalacritty-495a6f3526f5127c342d67980d0335f1ed4e235b.tar.gz
alacritty-495a6f3526f5127c342d67980d0335f1ed4e235b.zip
Fix cell reset not clearing flags and foreground
Fixes #2330.
Diffstat (limited to 'alacritty_terminal/src/term/cell.rs')
-rw-r--r--alacritty_terminal/src/term/cell.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty_terminal/src/term/cell.rs b/alacritty_terminal/src/term/cell.rs
index 234805f9..bb7869b2 100644
--- a/alacritty_terminal/src/term/cell.rs
+++ b/alacritty_terminal/src/term/cell.rs
@@ -135,7 +135,7 @@ impl Cell {
#[inline]
pub fn reset(&mut self, template: &Cell) {
// memcpy template to self
- *self = *template;
+ *self = Cell { c: template.c, bg: template.bg, ..Cell::default() };
}
#[inline]