diff options
-rw-r--r-- | src/local/pager.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim index 1447ca94..1402ed14 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -1209,8 +1209,7 @@ proc initImages(pager: Pager; container: Container) = let xpx = (image.x - container.fromx) * pager.attrs.ppc offx = -min(xpx, 0) let maxwpx = pager.bufWidth * pager.attrs.ppc - let width = min(image.width - offx, pager.attrs.widthPx) + offx - dispw = min(width + xpx, maxwpx) - xpx + dispw = min(image.width + xpx, maxwpx) - xpx let ypx = (image.y - container.fromy) * pager.attrs.ppl erry = -min(ypx, 0) mod 6 if dispw <= offx: |