~mariusor/motley

00f39b6881e7d7908c3748ce70867a8317c9efb9 — Marius Orcsik 4 months ago e38d19f
Noop should be nil to avoid unneeded updates
2 files changed, 2 insertions(+), 4 deletions(-)

M go.mod
M ui.go
M go.mod => go.mod +1 -1
@@ 17,7 17,7 @@ require (
	github.com/go-ap/storage-fs v0.0.0-20231114164216-ebc6b6d920df
	github.com/go-ap/storage-sqlite v0.0.0-20231112181059-f32529430fb8
	github.com/joho/godotenv v1.5.1
	github.com/mariusor/bubbles-tree v0.0.0-20231130175756-6f4f8acb1d0e
	github.com/mariusor/bubbles-tree v0.0.0-20231202120912-b21ad7d1d5a5
	github.com/mariusor/qstring v0.0.0-20200204164351-5a99d46de39d
	github.com/mattn/go-runewidth v0.0.15
	github.com/muesli/reflow v0.3.0

M ui.go => ui.go +1 -3
@@ 306,9 306,7 @@ func (m *model) Back(msg tea.Msg) tea.Cmd {
	return noop
}

func noop() tea.Msg {
	return "noop"
}
var noop tea.Cmd = nil

func advanceCmd(n *n) tea.Cmd {
	return func() tea.Msg {