Skip to content

Commit

Permalink
use stdout to determin output terminal size
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed Sep 6, 2017
1 parent 2cb6bbb commit 4d79af4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jira.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

var log = logging.MustGetLogger("jira")

const VERSION = "1.0.0"
const VERSION = "1.0.1"

type Jira struct {
Endpoint string `json:"endpoint,omitempty" yaml:"endpoint,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion jiracli/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func TemplateProcessor() *template.Template {
return string(bytes), nil
},
"termWidth": func() int {
w, _, err := terminal.GetSize(int(os.Stdin.Fd()))
w, _, err := terminal.GetSize(int(os.Stdout.Fd()))
if err == nil {
return w
}
Expand Down

0 comments on commit 4d79af4

Please sign in to comment.