diff options
-rw-r--r-- | src/display/client.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/display/client.nim b/src/display/client.nim index 54883a53..c51a4e5b 100644 --- a/src/display/client.nim +++ b/src/display/client.nim @@ -69,7 +69,9 @@ proc readPipe(client: Client, ctype: string) = let buffer = newBuffer(client.config, client.loader) buffer.contenttype = if ctype != "": ctype else: "text/plain" buffer.ispipe = true - buffer.istream = newFileStream(stdin) + let ifs = newFileStream(stdin) + buffer.istream = newStringStream(ifs.readAll()) + ifs.close() buffer.location = newURL("file://-") client.pager.addBuffer(buffer) #TODO is this portable at all? |