From d93c5700d432afc265fab1fbfef663f77361635d Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 26 Apr 2024 16:18:56 +0200 Subject: pager: reduce unnecessary image redraws the status line can't have images, so this should work --- src/local/pager.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/local') 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, -- cgit 1.4.1-2-gfad0