mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
WTF-784 Fix CmdRunner title spacing issue (#785)
Closes #784. Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
parent
746ead5747
commit
ed1e6b2508
@ -63,10 +63,10 @@ func (widget *Widget) String() string {
|
|||||||
args := strings.Join(widget.settings.args, " ")
|
args := strings.Join(widget.settings.args, " ")
|
||||||
|
|
||||||
if 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) {
|
func (widget *Widget) Write(p []byte) (n int, err error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user