diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-05-20 14:01:13 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-05-20 14:01:13 -0400 |
commit | 22cc40f4d482e76a53a72f7a3c6ddf8038b3c98e (patch) | |
tree | 6553ec5a5b39719e22ba33b2d44b54400e5b121b /commands/account | |
parent | ef57300fafb45f54d10f8ec75d19301dec351ba0 (diff) | |
download | aerc-22cc40f4d482e76a53a72f7a3c6ddf8038b3c98e.tar.gz |
pipe.go: let tab widget handle ellipsis
Diffstat (limited to 'commands/account')
-rw-r--r-- | commands/account/pipe.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/account/pipe.go b/commands/account/pipe.go index 9461d175..9675fe46 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). |