From 055dcdd1d166a433d843498eb11272654491c115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Tue, 10 Sep 2019 23:54:58 +0200 Subject: mam: Fix comment in on_scroll_up MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/mam.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/poezio/mam.py b/poezio/mam.py index cb5b9080..e297d555 100644 --- a/poezio/mam.py +++ b/poezio/mam.py @@ -198,9 +198,9 @@ async def on_tab_open(tab) -> None: async def on_scroll_up(tab) -> None: tw = tab.text_win - # If position in the tab is <= two pages, then fetch MAM, so that we keep - # some prefetched margin. A first page should also be prefetched on join - # if not already available. + # If position in the tab is < two screen pages, then fetch MAM, so that we + # keep some prefetched margin. A first page should also be prefetched on + # join if not already available. total, pos, height = len(tw.built_lines), tw.pos, tw.height rest = (total - pos) // height -- cgit v1.2.3