Commit 2e6c711644
Unregistered key
Layout: unified · split
src/base.rs +3 −1
| @@ -1361,7 +1361,9 @@ impl RoomInfo { | |||
| 1361 | } | 1361 | } |
| 1362 | 1362 | ||
| 1363 | if !settings.tunables.typing_notice_display { | 1363 | 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); | ||
| 1365 | } | 1367 | } |
| 1366 | 1368 | ||
| 1367 | let top = Rect::new(area.x, area.y, area.width, area.height - 1); | 1369 | 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 { | |||
| 1571 | // MSG1: | XXXday, Month NN 20XX | | 1571 | // MSG1: | XXXday, Month NN 20XX | |
| 1572 | // | @user1:example.com writhe | | 1572 | // | @user1:example.com writhe | |
| 1573 | // |------------------------------------------------------------| | 1573 | // |------------------------------------------------------------| |
| 1574 | let area = Rect::new(0, 0, 60, 4); | 1574 | let area = Rect::new(0, 0, 60, 5); |
| 1575 | let mut buffer = Buffer::empty(area); | 1575 | let mut buffer = Buffer::empty(area); |
| 1576 | scrollback.draw(area, &mut buffer, true, &mut store); | 1576 | scrollback.draw(area, &mut buffer, true, &mut store); |
| 1577 | 1577 | ||