mirror of
https://github.com/charmbracelet/gum
synced 2024-06-07 16:22:17 +02:00
fix(write): honor --height argument
This commit is contained in:
parent
d760cf4048
commit
be4027ce28
|
@ -29,6 +29,7 @@ func (o Options) Run() {
|
||||||
a.BlurredStyle.Prompt = lipgloss.NewStyle().Foreground(lipgloss.Color(o.PromptColor))
|
a.BlurredStyle.Prompt = lipgloss.NewStyle().Foreground(lipgloss.Color(o.PromptColor))
|
||||||
|
|
||||||
a.SetWidth(o.Width)
|
a.SetWidth(o.Width)
|
||||||
|
a.SetHeight(o.Height)
|
||||||
|
|
||||||
p := tea.NewProgram(model{a}, tea.WithOutput(os.Stderr))
|
p := tea.NewProgram(model{a}, tea.WithOutput(os.Stderr))
|
||||||
m, _ := p.StartReturningModel()
|
m, _ := p.StartReturningModel()
|
||||||
|
|
Loading…
Reference in a new issue