about summary refs log tree commit diff stats
path: root/src/main.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-11-30 13:14:04 +0100
committerbptato <nincsnevem662@gmail.com>2022-11-30 13:14:04 +0100
commit58d374639ff9876eac36f17f12ab854ba931ca28 (patch)
tree27be779a01baca71ca807bf8b44609b123c53343 /src/main.nim
parent6c9c41aa660769ea1df6f939685322ef3e57664a (diff)
downloadchawan-58d374639ff9876eac36f17f12ab854ba931ca28.tar.gz
*_HOME should be disabled when stdin *is* a tty
Diffstat (limited to 'src/main.nim')
-rw-r--r--src/main.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.nim b/src/main.nim
index 15b5dcb1..19919db3 100644
--- a/src/main.nim
+++ b/src/main.nim
@@ -99,7 +99,7 @@ while i < params.len:
       pages.add(param)
   inc i
 
-if pages.len == 0 and not stdin.isatty():
+if pages.len == 0 and stdin.isatty():
   let http = getEnv("HTTP_HOME")
   if http != "": pages.add(http)
   else: