From 8ab3db279efc68d1dd91eb9c5d97e714cceca2a3 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 29 Sep 2025 10:22:39 +0200 Subject: [PATCH] Fix broken n_lines_unread calculation. --- src/ircplom/tui_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2