diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2019-09-10 23:54:58 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2019-09-10 23:54:58 +0200 |
commit | 055dcdd1d166a433d843498eb11272654491c115 (patch) | |
tree | cd51c2762f43064446d30af9ad9a10b0f25981c0 | |
parent | 2417b115d2ebe1a12949a14c045bbb4f71d5e53b (diff) | |
download | poezio-055dcdd1d166a433d843498eb11272654491c115.tar.gz poezio-055dcdd1d166a433d843498eb11272654491c115.tar.bz2 poezio-055dcdd1d166a433d843498eb11272654491c115.tar.xz poezio-055dcdd1d166a433d843498eb11272654491c115.zip |
mam: Fix comment in on_scroll_up
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r-- | poezio/mam.py | 6 |
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 |