Commit 055dcdd1 authored by Maxime Buquet's avatar Maxime Buquet

mam: Fix comment in on_scroll_up

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent 2417b115
Pipeline #2405 passed with stages
in 2 minutes and 37 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment