From 22cc40f4d482e76a53a72f7a3c6ddf8038b3c98e Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 20 May 2019 14:01:13 -0400 Subject: pipe.go: let tab widget handle ellipsis --- commands/account/pipe.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'commands') diff --git a/commands/account/pipe.go b/commands/account/pipe.go index 9461d17..9675fe4 100644 --- a/commands/account/pipe.go +++ b/commands/account/pipe.go @@ -9,7 +9,6 @@ import ( "git.sr.ht/~sircmpwn/aerc/widgets" "github.com/gdamore/tcell" - "github.com/mattn/go-runewidth" ) func init() { @@ -38,7 +37,7 @@ func Pipe(aerc *widgets.Aerc, args []string) error { return } name := args[1] + " <" + msg.Envelope.Subject - aerc.NewTab(term, runewidth.Truncate(name, 32, "…")) + aerc.NewTab(term, name) term.OnClose = func(err error) { if err != nil { aerc.PushStatus(" "+err.Error(), 10*time.Second). -- cgit v1.2.3