Skip to content

Commit

Permalink
Fix an issue with using Orbiton as a man page viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Jun 30, 2023
1 parent 322a4cd commit cac715b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ See the man page for more information.

stdinFilename := len(os.Args) == 1 || (len(os.Args) == 2 && (os.Args[1] == "-" || os.Args[1] == "/dev/stdin"))
// If no regular filename is given, check if data is ready at stdin
fnord.stdin = (stdinFilename && dataReadyOnStdin()) || manIsParent()
fnord.stdin = stdinFilename && (dataReadyOnStdin() || manIsParent())
if fnord.stdin {
// TODO: Use a spinner?
data, err := io.ReadAll(os.Stdin)
Expand Down

0 comments on commit cac715b

Please sign in to comment.