diff --git a/src/base.rs b/src/base.rs index 1cd3071..fdb7875 100644 --- a/src/base.rs +++ b/src/base.rs @@ -1361,7 +1361,9 @@ impl RoomInfo { } if !settings.tunables.typing_notice_display { - return area; + // still keep one line blank, so `render_jump_to_recent` doesn't immediately hide the + // last line in scrollback + return Rect::new(area.x, area.y, area.width, area.height - 1); } let top = Rect::new(area.x, area.y, area.width, area.height - 1); diff --git a/src/windows/room/scrollback.rs b/src/windows/room/scrollback.rs index 3d8ec7f..53da0b7 100644 --- a/src/windows/room/scrollback.rs +++ b/src/windows/room/scrollback.rs @@ -1571,7 +1571,7 @@ mod tests { // MSG1: | XXXday, Month NN 20XX | // | @user1:example.com writhe | // |------------------------------------------------------------| - let area = Rect::new(0, 0, 60, 4); + let area = Rect::new(0, 0, 60, 5); let mut buffer = Buffer::empty(area); scrollback.draw(area, &mut buffer, true, &mut store);