summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/mam.py6
1 files 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