Remove viewport_offset from RenderableDimensions

refs: https://github.com/wez/wezterm/issues/106
This commit is contained in:
Wez Furlong committed 2020-01-05 14:37:17 -08:00
1 parent ef072255dd
commit 1c716898e7
3 files changed
-6

No files matched your search

-4
View File
@@ -13,9 +13,6 @@ pub struct RenderableDimensions {
pub viewport_rows: usize,
/// The total number of lines in the scrollback, including the viewport
pub scrollback_rows: usize,
/// The offset is measured from the top of the physical viewable
/// screen with larger numbers going backwards.
pub viewport_offset: VisibleRowIndex,
/// The top of the physical, non-scrollback, screen expressed
/// as a stable index. It is envisioned that this will be used
@@ -116,7 +113,6 @@ impl Renderable for Terminal {
cols: screen.physical_cols,
viewport_rows: screen.physical_rows,
scrollback_rows: screen.lines.len(),
viewport_offset: self.get_viewport_offset(),
physical_top: screen.visible_row_to_stable_row(0),
scrollback_top: screen.phys_to_stable_row_index(0),
}
-1
View File
@@ -499,7 +499,6 @@ impl Renderable for RenderableState {
viewport_rows,
cols,
scrollback_rows: 0,
viewport_offset: 0,
physical_top: 0,
scrollback_top: 0,
}
-1
View File
@@ -163,7 +163,6 @@ impl Renderable for RenderableState {
viewport_rows,
cols,
scrollback_rows: 0,
viewport_offset: 0,
physical_top: 0,
scrollback_top: 0,
}