Closed vielmetti closed 6 years ago
Heh, yeah. Definitely a bug. Thanks for finding this one! I think a plot with no points would be the correct output.
Should be fixed in 1.0.1:
echo "" | jp
2018/03/22 21:09:59 EOF
-Inf│
│
│
│
y
│
│
│
+Inf└─────x─────────
+Inf -Inf
Tested from source on Mac, and from binaries on arm64, seems to work as expected.
I'm not 100% sure what the right behavior is in the face of a zero-length input file, but a panic is probably not the right thing do to.