From: Christian Heller Date: Mon, 29 Sep 2025 08:22:39 +0000 (+0200) Subject: Fix broken n_lines_unread calculation. X-Git-Url: https://plomlompom.com/repos/?a=commitdiff_plain;h=8ab3db279efc68d1dd91eb9c5d97e714cceca2a3;p=ircplom Fix broken n_lines_unread calculation. --- diff --git a/src/ircplom/tui_base.py b/src/ircplom/tui_base.py index abfe67e..4593bdc 100644 --- a/src/ircplom/tui_base.py +++ b/src/ircplom/tui_base.py @@ -184,7 +184,7 @@ class _HistoryWidget(_ScrollableWidget): @property def n_lines_unread(self) -> int: 'How many new lines have been logged since last focus.' - return len(self._history) - self._last_read_idx_pos + return len(self._history) - self._last_read_idx_pos - 1 def _scroll(self, up: bool = True) -> None: super()._scroll(up)