Commit 2e6c711644

2e6c711644cd000e0256ad56974e6c8b33e8771b

parent: d1b03880f3

Unregistered key

VAWVAW <git@nlih.de> · 2025-06-21 17:43 UTC
committer: <noreply@github.com>

Make scrollback display stable with `typing_notice_display = false` (#469)

Layout: unified · split

src/base.rs +3 −1
@@ -1361,7 +1361,9 @@ impl RoomInfo {
13611361 }
13621362
13631363 if !settings.tunables.typing_notice_display {
1364 return area;
1364 // still keep one line blank, so `render_jump_to_recent` doesn't immediately hide the
1365 // last line in scrollback
1366 return Rect::new(area.x, area.y, area.width, area.height - 1);
13651367 }
13661368
13671369 let top = Rect::new(area.x, area.y, area.width, area.height - 1);
src/windows/room/scrollback.rs +1 −1
@@ -1571,7 +1571,7 @@ mod tests {
15711571 // MSG1: | XXXday, Month NN 20XX |
15721572 // | @user1:example.com writhe |
15731573 // |------------------------------------------------------------|
1574 let area = Rect::new(0, 0, 60, 4);
1574 let area = Rect::new(0, 0, 60, 5);
15751575 let mut buffer = Buffer::empty(area);
15761576 scrollback.draw(area, &mut buffer, true, &mut store);
15771577