Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mistakenelf committed Sep 12, 2021
1 parent 8308945 commit efd5a08
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions internal/ui/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case moveDirItemMsg:
// Set active color back to default.
m.primaryPane.SetActiveBorderColor(m.appConfig.Colors.Pane.ActiveBorderColor)

m.dirTree.SetContent(msg)
m.primaryPane.SetContent(m.dirTree.View())

Expand Down Expand Up @@ -161,7 +160,10 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {

if !m.ready {
m.ready = true
m.secondaryPane.SetContent(lipgloss.NewStyle().Width(m.secondaryPane.GetWidth() - m.secondaryPane.Style.GetHorizontalFrameSize()).Render(m.help.View(m.keys)))
m.secondaryPane.SetContent(lipgloss.NewStyle().
Width(m.secondaryPane.GetWidth() - m.secondaryPane.Style.GetHorizontalFrameSize()).
Render(m.help.View(m.keys)),
)
}

return m, tea.Batch(cmds...)
Expand Down Expand Up @@ -454,7 +456,10 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.textInput.Reset()
m.secondaryPane.GotoTop()
m.primaryPane.SetActiveBorderColor(m.appConfig.Colors.Pane.ActiveBorderColor)
m.secondaryPane.SetContent(lipgloss.NewStyle().Width(m.secondaryPane.GetWidth() - m.secondaryPane.Style.GetHorizontalFrameSize()).Render(m.help.View(m.keys)))
m.secondaryPane.SetContent(lipgloss.NewStyle().
Width(m.secondaryPane.GetWidth() - m.secondaryPane.Style.GetHorizontalFrameSize()).
Render(m.help.View(m.keys)),
)
m.colorimage.SetImage(nil)
m.markdown.SetContent("")
m.text.SetContent("")
Expand Down

0 comments on commit efd5a08

Please sign in to comment.