about summary refs log tree commit diff stats
path: root/src/display/client.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-06 21:58:46 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-06 21:58:46 +0100
commit62e1cce884995c68ed8edacd670459a3b45065af (patch)
tree30fbf5e1813ef78a299a5d534424b9cc8fc053bc /src/display/client.nim
parentf7ab539bfd798c3aed0997c986bd669a9096e1d6 (diff)
downloadchawan-62e1cce884995c68ed8edacd670459a3b45065af.tar.gz
Do not set client.console.tty twice
Diffstat (limited to 'src/display/client.nim')
-rw-r--r--src/display/client.nim5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/display/client.nim b/src/display/client.nim
index 8ce4f124..8c591600 100644
--- a/src/display/client.nim
+++ b/src/display/client.nim
@@ -392,10 +392,9 @@ proc launchClient*(client: Client, pages: seq[string], ctype: Option[string], du
       client.config.startup
     client.command0(s, client.config.startup, silence = true)
   client.userstyle = client.config.stylesheet.parseStylesheet()
-  if not stdin.isatty:
+
+  if not stdin.isatty():
     client.pager.readPipe(ctype, stdin.getFileHandle())
-  else:
-    client.console.tty = stdin
 
   for page in pages:
     client.pager.loadURL(page, ctype = ctype)