diff options
author | Aaron Hill <aa1ronham@gmail.com> | 2017-06-14 12:38:44 -0400 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-06-14 10:43:42 -0700 |
commit | f8e6f1f623de21c7e8f7c39b534ecd036e7ecfbb (patch) | |
tree | 45a9c4d10709486e04333e233b24fd37c95d1059 | |
parent | 529ac47fc81f12e953568826b87ef75568eaa83b (diff) | |
download | alacritty-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
-rw-r--r-- | src/term/mod.rs | 2 |
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); } |