mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-25 14:05:41 -05:00
Fix rows only resetting partially
This resolves an issue with rows only resetting partially, based on their `occ` state. However this state is not always accurate, so more than just the occupied elements need to be cleared. Fixes #2340.
This commit is contained in:
parent
0815774cbf
commit
af30f3735a
2 changed files with 2 additions and 2 deletions
|
@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- Performance issues while resizing Alacritty
|
- Performance issues while resizing Alacritty
|
||||||
- First unfullscreen action ignored on window launched in fullscreen mode
|
- First unfullscreen action ignored on window launched in fullscreen mode
|
||||||
- The window is now filled with the background color before displaying
|
- The window is now filled with the background color before displaying
|
||||||
|
- Cells sometimes not getting cleared correctly
|
||||||
|
|
||||||
## 0.3.3
|
## 0.3.3
|
||||||
|
|
||||||
|
|
|
@ -80,9 +80,8 @@ impl<T: Copy> Row<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Resets contents to the contents of `other`
|
/// Resets contents to the contents of `other`
|
||||||
#[inline(never)]
|
|
||||||
pub fn reset(&mut self, other: &T) {
|
pub fn reset(&mut self, other: &T) {
|
||||||
for item in &mut self.inner[..self.occ] {
|
for item in &mut self.inner[..] {
|
||||||
*item = *other;
|
*item = *other;
|
||||||
}
|
}
|
||||||
self.occ = 0;
|
self.occ = 0;
|
||||||
|
|
Loading…
Reference in a new issue