Skip to content

Commit

Permalink
fix(debugger): fix crash for machs with log level 0
Browse files Browse the repository at this point in the history
  • Loading branch information
pancsta committed Jul 10, 2024
1 parent 6d7a029 commit fdc195a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/debugger/debugger.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fdc195a

Please sign in to comment.