about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-04-26 16:18:56 +0200
committerbptato <nincsnevem662@gmail.com>2024-04-26 16:18:56 +0200
commitd93c5700d432afc265fab1fbfef663f77361635d (patch)
tree03989a5a9fe73a8b13049b704a3481ad4d6c0de4
parenta42f96ee6287c714ce90206009f20494995940db (diff)
downloadchawan-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.nim2
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,