aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/grid/row.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2020-07-01 06:58:06 +0000
committerGitHub <noreply@github.com>2020-07-01 09:58:06 +0300
commitbc60782e424359d818a22ffa2ffa3c2dc88ab6fe (patch)
tree3fb6548a20e8c61badefd4aa91396c4eecce6c4d /alacritty_terminal/src/grid/row.rs
parent8688e47ddb932818d4e0992299c3cbbff6cf0572 (diff)
downloadr-alacritty-bc60782e424359d818a22ffa2ffa3c2dc88ab6fe.tar.gz
r-alacritty-bc60782e424359d818a22ffa2ffa3c2dc88ab6fe.tar.bz2
r-alacritty-bc60782e424359d818a22ffa2ffa3c2dc88ab6fe.zip
Fix reflow of empty wrapped cursor line
This bug was caused by trying to grow the terminal while the cursor line was wrapped but entirely empty. Resizing the terminal now accounts for the position of the deleted line and moves the cursor up only when the line deleted was above it. The deletion of the line was caused by the shell redrawing itself whenever the cursor is moved. Fixes #3583.
Diffstat (limited to 'alacritty_terminal/src/grid/row.rs')
-rw-r--r--alacritty_terminal/src/grid/row.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/alacritty_terminal/src/grid/row.rs b/alacritty_terminal/src/grid/row.rs
index bd5411aa..7846a7ae 100644
--- a/alacritty_terminal/src/grid/row.rs
+++ b/alacritty_terminal/src/grid/row.rs
@@ -130,8 +130,9 @@ impl<T> Row<T> {
self.inner = vec;
}
+ /// Check if all cells in the row are empty.
#[inline]
- pub fn is_empty(&self) -> bool
+ pub fn is_clear(&self) -> bool
where
T: GridCell,
{