aboutsummaryrefslogtreecommitdiff
path: root/src/grid/row.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2018-04-02 08:44:54 -0700
committerJoe Wilm <joe@jwilm.com>2018-06-02 09:56:50 -0700
commitb19045da66899999856c6b2cc6707b60c607660a (patch)
tree79e3ebe269f3122b762fe940173a2e1a56eccf38 /src/grid/row.rs
parentf66e3e457bdda808cc3f994a02fd6f7ce5ba381e (diff)
downloadr-alacritty-b19045da66899999856c6b2cc6707b60c607660a.tar.gz
r-alacritty-b19045da66899999856c6b2cc6707b60c607660a.tar.bz2
r-alacritty-b19045da66899999856c6b2cc6707b60c607660a.zip
Fix BCE ref tests
BCE was broken in attempt to optimize row clearing. The fix is to revert to passing in the current cursor state when clearing.
Diffstat (limited to 'src/grid/row.rs')
-rw-r--r--src/grid/row.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/grid/row.rs b/src/grid/row.rs
index f6b2a20e..f7e4a98a 100644
--- a/src/grid/row.rs
+++ b/src/grid/row.rs
@@ -37,8 +37,10 @@ impl<T: Copy + Clone> Row<T> {
/// Resets contents to the contents of `other`
#[inline]
- pub fn reset(&mut self, other: &Row<T>) {
- self.copy_from_slice(&**other);
+ pub fn reset(&mut self, other: &T) {
+ for item in &mut self.0 {
+ *item = *other;
+ }
}
}