diff options
author | bptato <nincsnevem662@gmail.com> | 2024-04-26 16:18:56 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-04-26 16:18:56 +0200 |
commit | d93c5700d432afc265fab1fbfef663f77361635d (patch) | |
tree | 03989a5a9fe73a8b13049b704a3481ad4d6c0de4 | |
parent | a42f96ee6287c714ce90206009f20494995940db (diff) | |
download | chawan-d93c5700d432afc265fab1fbfef663f77361635d.tar.gz |
pager: reduce unnecessary image redraws
the status line can't have images, so this should work
-rw-r--r-- | src/local/pager.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim index 8e828190..05ebe376 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -449,7 +449,7 @@ proc draw*(pager: Pager) = else: pager.term.writeGrid(pager.statusgrid, 0, pager.attrs.height - 1) pager.term.outputGrid() - if container != nil: + if container != nil and pager.redraw: pager.term.clearImages() for image in container.images: pager.term.outputImage(image.bmp, image.x - container.fromx, |