From 345b515fdefe53a8cd80defdaa10d6d7696805fe Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 15 Feb 2024 22:00:15 +0100 Subject: pager: increase numload for stdin otherwise pages from stdin have a race condition in dump --- src/local/pager.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'src/local/pager.nim') diff --git a/src/local/pager.nim b/src/local/pager.nim index 0e4f738a..eb6e531d 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -774,6 +774,7 @@ proc readPipe0*(pager: Pager, ctype: Option[string], cs: Charset, proc readPipe*(pager: Pager, ctype: Option[string], cs: Charset, fd: FileHandle, title: string) = let container = pager.readPipe0(ctype, cs, fd, none(URL), title, true) + inc pager.numload pager.addContainer(container) proc command(pager: Pager) {.jsfunc.} = -- cgit 1.4.1-2-gfad0