diff options
Diffstat (limited to 'commands/msg/envelope.go')
-rw-r--r-- | commands/msg/envelope.go | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/commands/msg/envelope.go b/commands/msg/envelope.go index 9b168fae..35243509 100644 --- a/commands/msg/envelope.go +++ b/commands/msg/envelope.go @@ -57,8 +57,7 @@ func (e Envelope) Execute(args []string) error { } } - n := len(list) - app.AddDialog(app.NewDialog( + app.AddDialog(app.DefaultDialog( app.NewListBox( "Message Envelope. Press <Esc> or <Enter> to close. "+ "Start typing to filter.", @@ -68,20 +67,6 @@ func (e Envelope) Execute(args []string) error { app.CloseDialog() }, ), - // start pos on screen - func(h int) int { - if n < h/8*6 { - return h/2 - n/2 - 1 - } - return h / 8 - }, - // dialog height - func(h int) int { - if n < h/8*6 { - return n + 2 - } - return h / 8 * 6 - }, )) return nil |