diff options
Diffstat (limited to 'alacritty_terminal')
-rw-r--r-- | alacritty_terminal/src/grid/row.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/alacritty_terminal/src/grid/row.rs b/alacritty_terminal/src/grid/row.rs index 88a23871..b67f8cd4 100644 --- a/alacritty_terminal/src/grid/row.rs +++ b/alacritty_terminal/src/grid/row.rs @@ -80,9 +80,8 @@ impl<T: Copy> Row<T> { } /// Resets contents to the contents of `other` - #[inline(never)] pub fn reset(&mut self, other: &T) { - for item in &mut self.inner[..self.occ] { + for item in &mut self.inner[..] { *item = *other; } self.occ = 0; |