aboutsummaryrefslogtreecommitdiff
path: root/src/term/mod.rs
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2017-06-14 12:38:44 -0400
committerJoe Wilm <jwilm@users.noreply.github.com>2017-06-14 10:43:42 -0700
commitf8e6f1f623de21c7e8f7c39b534ecd036e7ecfbb (patch)
tree45a9c4d10709486e04333e233b24fd37c95d1059 /src/term/mod.rs
parent529ac47fc81f12e953568826b87ef75568eaa83b (diff)
downloadalacritty-f8e6f1f623de21c7e8f7c39b534ecd036e7ecfbb.tar.gz
alacritty-f8e6f1f623de21c7e8f7c39b534ecd036e7ecfbb.zip
Use cursor cell template when handling 'CSI X' escape sequence
This ensures that the cleared cells are set to the proper background color, which is the main usage of this escape sequence. Fixes #612
Diffstat (limited to 'src/term/mod.rs')
-rw-r--r--src/term/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term/mod.rs b/src/term/mod.rs
index ab48aead..227e90d2 100644
--- a/src/term/mod.rs
+++ b/src/term/mod.rs
@@ -1495,7 +1495,7 @@ impl ansi::Handler for Term {
let end = min(start + count, self.grid.num_cols() - 1);
let row = &mut self.grid[self.cursor.point.line];
- let template = self.empty_cell;
+ let template = self.cursor.template; // Cleared cells have current background color set
for c in &mut row[start..end] {
c.reset(&template);
}