mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-23 19:10:09 +03:00
fix(compatibility): fix grid glitch edge-case when resizing (#149)
* fix(compatibility): fix grid glitch edge-case when resizing a grid with a scroll region * style(fmt): rustfmt
This commit is contained in:
parent
e7ea05f50b
commit
81af57b15d
@ -636,7 +636,8 @@ impl Grid {
|
|||||||
// region
|
// region
|
||||||
for _ in 0..count {
|
for _ in 0..count {
|
||||||
self.viewport.remove(current_line_index);
|
self.viewport.remove(current_line_index);
|
||||||
self.viewport.insert(scroll_region_bottom, Row::new());
|
self.viewport
|
||||||
|
.insert(scroll_region_bottom, Row::new().canonical());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -652,7 +653,8 @@ impl Grid {
|
|||||||
// of the scroll region
|
// of the scroll region
|
||||||
for _ in 0..count {
|
for _ in 0..count {
|
||||||
self.viewport.remove(scroll_region_bottom);
|
self.viewport.remove(scroll_region_bottom);
|
||||||
self.viewport.insert(current_line_index, Row::new());
|
self.viewport
|
||||||
|
.insert(current_line_index, Row::new().canonical());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user