Skip to content

Commit

Permalink
Merge branch 'master' of github.com:zaquestion/lab
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaq? Wiedmann committed Jan 5, 2021
2 parents cf622fe + c2d660c commit 319d609
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@ func textToMarkdown(text string) string {
// to avoid some markdown rendering garbage going to other outputs that
// don't support some control chars.
func isOutputTerminal() bool {
if !terminal.IsTerminal(syscall.Stdout) || !terminal.IsTerminal(syscall.Stderr) {
if !terminal.IsTerminal(int(syscall.Stdout)) ||
!terminal.IsTerminal(int(syscall.Stderr)) {
return false
}
return true
Expand Down

0 comments on commit 319d609

Please sign in to comment.