fix(write): honor --height argument

This commit is contained in:
Christian Rocha 2022-07-08 17:20:34 -07:00 committed by Maas Lalani
parent d760cf4048
commit be4027ce28
No known key found for this signature in database
GPG key ID: 5A6ED5CBF1A0A000

View file

@ -29,6 +29,7 @@ func (o Options) Run() {
a.BlurredStyle.Prompt = lipgloss.NewStyle().Foreground(lipgloss.Color(o.PromptColor))
a.SetWidth(o.Width)
a.SetHeight(o.Height)
p := tea.NewProgram(model{a}, tea.WithOutput(os.Stderr))
m, _ := p.StartReturningModel()