From fdc195ae9ade8c9359670ad683adf59807fbabf7 Mon Sep 17 00:00:00 2001 From: pancsta <155631569+pancsta@users.noreply.github.com> Date: Wed, 10 Jul 2024 15:05:56 +0200 Subject: [PATCH] fix(debugger): fix crash for machs with log level 0 --- tools/debugger/debugger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/debugger/debugger.go b/tools/debugger/debugger.go index 8e25823..cb5412f 100644 --- a/tools/debugger/debugger.go +++ b/tools/debugger/debugger.go @@ -1276,7 +1276,7 @@ func (d *Debugger) doUpdateLog() { // highlight this tx or the prev if empty if len(tx.LogEntries) == 0 && d.PrevTx() != nil { last := d.PrevTx() - for i := d.C.CursorTx - 1; i >= 0; i-- { + for i := d.C.CursorTx - 1; i > 0; i-- { if len(last.LogEntries) > 0 { tx = last break