diff options
author | bptato <nincsnevem662@gmail.com> | 2024-02-15 22:00:15 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-02-15 22:00:15 +0100 |
commit | 345b515fdefe53a8cd80defdaa10d6d7696805fe (patch) | |
tree | cdd63c41e46737385926ba221a01268e1b49b896 /src/local/pager.nim | |
parent | 65e734f23f9e3259f679f8852e77e90002281d40 (diff) | |
download | chawan-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.nim | 1 |
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.} = |