Skip to content

Commit

Permalink
if text content is set, rerender on resize
Browse files Browse the repository at this point in the history
  • Loading branch information
mistakenelf committed Sep 6, 2021
1 parent a28e453 commit 9b976c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/ui/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
cmds = append(cmds, resizeMarkdownCmd)
}

if m.text.Content != "" {
m.secondaryPane.SetContent(m.text.View())
}

if !m.ready {
m.ready = true
m.secondaryPane.SetContent(m.help.View(m.keys))
Expand Down

0 comments on commit 9b976c7

Please sign in to comment.