about summary refs log tree commit diff stats
path: root/src/local/pager.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-15 22:00:15 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-15 22:00:15 +0100
commit345b515fdefe53a8cd80defdaa10d6d7696805fe (patch)
treecdd63c41e46737385926ba221a01268e1b49b896 /src/local/pager.nim
parent65e734f23f9e3259f679f8852e77e90002281d40 (diff)
downloadchawan-345b515fdefe53a8cd80defdaa10d6d7696805fe.tar.gz
pager: increase numload for stdin
otherwise pages from stdin have a race condition in dump
Diffstat (limited to 'src/local/pager.nim')
-rw-r--r--src/local/pager.nim1
1 files changed, 1 insertions, 0 deletions
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.} =