src

Go monorepo.
git clone git://code.dwrz.net/src
Log | Files | Refs

commit bd9052786265ea8defb772f2e72177ff363f7b11
parent 793450bc5c3fb9a01886814657f5e11aa397f41c
Author: dwrz <dwrz@dwrz.net>
Date:   Sun,  9 Nov 2025 19:47:37 +0000

Fix statusbar mlight pkg

Diffstat:
Mpkg/statusbar/mlight/mlight.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/statusbar/mlight/mlight.go b/pkg/statusbar/mlight/mlight.go @@ -40,11 +40,11 @@ func (b *Block) Render(ctx context.Context) (string, error) { } fields := strings.Fields(string(out)) - if len(fields) < 2 { + if len(fields) < 4 { return " ", nil } - val, err := strconv.Atoi(fields[1]) + val, err := strconv.Atoi(fields[3]) if err != nil { return " ", nil }