Skip to content

Commit

Permalink
WTF-784 Fix CmdRunner title spacing issue
Browse files Browse the repository at this point in the history
Closes #784.

Signed-off-by: Chris Cummer <[email protected]>
  • Loading branch information
senorprogrammer committed Dec 14, 2019
1 parent 746ead5 commit 4b87c89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/cmdrunner/widget.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ func (widget *Widget) String() string {
args := strings.Join(widget.settings.args, " ")

if args != "" {
return fmt.Sprintf(" %s %s ", widget.settings.cmd, args)
return fmt.Sprintf("%s %s", widget.settings.cmd, args)
}

return fmt.Sprintf(" %s ", widget.settings.cmd)
return widget.settings.cmd
}

func (widget *Widget) Write(p []byte) (n int, err error) {
Expand Down

0 comments on commit 4b87c89

Please sign in to comment.