diff options
author | bptato <nincsnevem662@gmail.com> | 2022-11-30 13:14:04 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-11-30 13:14:04 +0100 |
commit | 58d374639ff9876eac36f17f12ab854ba931ca28 (patch) | |
tree | 27be779a01baca71ca807bf8b44609b123c53343 /src/main.nim | |
parent | 6c9c41aa660769ea1df6f939685322ef3e57664a (diff) | |
download | chawan-58d374639ff9876eac36f17f12ab854ba931ca28.tar.gz |
*_HOME should be disabled when stdin *is* a tty
Diffstat (limited to 'src/main.nim')
-rw-r--r-- | src/main.nim | 2 |
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: |