We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 554cb39 commit e60cc05Copy full SHA for e60cc05
1 file changed
internal/view/attachment.go
@@ -48,7 +48,7 @@ func (a *Attachment) Render() error {
48
return tui.PagerOut(a.buf.String())
49
}
50
51
-func (a *Attachment) header() []string {
+func attachmentHeader() []string {
52
return []string{
53
"NAME",
54
"SIZE",
@@ -57,8 +57,9 @@ func (a *Attachment) header() []string {
57
58
59
func (a *Attachment) printHeader() {
60
- n := len(a.header())
61
- for i, h := range a.header() {
+ header := attachmentHeader()
+ n := len(header)
62
+ for i, h := range header {
63
_, _ = fmt.Fprintf(a.Writer, "%s", h)
64
if i != n-1 {
65
_, _ = fmt.Fprintf(a.Writer, "\t")
0 commit comments