diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-05-14 16:18:21 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-05-14 16:18:59 -0400 |
commit | 2c486cb7f52ac5dd88f7445ca79726639e4a0084 (patch) | |
tree | 552b1fe370f1fd2344687c7e55ada9d80c0bc9a7 /commands/account/view-message.go | |
parent | 065da5e37230976d85d163a6f682eddb9345aede (diff) | |
download | aerc-2c486cb7f52ac5dd88f7445ca79726639e4a0084.tar.gz |
Update tab name as subject changes
Also moves truncation to the tab widget
Diffstat (limited to 'commands/account/view-message.go')
-rw-r--r-- | commands/account/view-message.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/commands/account/view-message.go b/commands/account/view-message.go index ea6addc2..3697aa74 100644 --- a/commands/account/view-message.go +++ b/commands/account/view-message.go @@ -3,8 +3,6 @@ package account import ( "errors" - "github.com/mattn/go-runewidth" - "git.sr.ht/~sircmpwn/aerc2/widgets" ) @@ -26,8 +24,7 @@ func ViewMessage(aerc *widgets.Aerc, args []string) error { return nil } viewer := widgets.NewMessageViewer(aerc.Config(), store, msg) - aerc.NewTab(viewer, runewidth.Truncate( - msg.Envelope.Subject, 32, "…")) + aerc.NewTab(viewer, msg.Envelope.Subject) return nil } |