From b2cc488dd8c16a630a0c6f9eb183631e736e91d3 Mon Sep 17 00:00:00 2001 From: "Randall C. O'Reilly" Date: Sat, 17 Feb 2024 17:02:32 -0800 Subject: [PATCH] minor formatting etc --- code/cdebug/state.go | 10 +++++----- code/code/findview.go | 5 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/code/cdebug/state.go b/code/cdebug/state.go index 58b51859..dcdcaa8f 100644 --- a/code/cdebug/state.go +++ b/code/cdebug/state.go @@ -39,7 +39,7 @@ type Thread struct { FPath string `tableview:"-"` // the name of the function - Func string + Func string `width:"80"` // id of the current Task within this system thread (if relevant) Task int @@ -81,7 +81,7 @@ type Task struct { FPath string `tableview:"-" tableview:"-"` // the name of the function - Func string + Func string `width:"80"` // id of the current Thread this task is running on Thread int `format:"%#X"` @@ -124,7 +124,7 @@ type Location struct { FPath string `view:"-" tableview:"-"` // the name of the function - Func string + Func string `width:"80"` } // Frame describes one frame in a stack trace. @@ -149,7 +149,7 @@ type Frame struct { FPath string `tableview:"-" tableview:"-"` // the name of the function - Func string + Func string `width:"80"` // values of the local variables at this frame Vars []*Variable `tableview:"-"` @@ -180,7 +180,7 @@ type Break struct { FPath string `edit:"-" view:"-" tableview:"-"` // the name of the function - Func string `edit:"-"` + Func string `edit:"-" width:"80"` // condition for conditional breakbpoint Cond string diff --git a/code/code/findview.go b/code/code/findview.go index 54751269..931f51ba 100644 --- a/code/code/findview.go +++ b/code/code/findview.go @@ -296,9 +296,10 @@ func (fv *FindView) ReplaceAll() { } go func() { for { - updt := fv.Code.AsWidget().Scene.UpdateStartAsync() + sc := fv.Code.AsWidget().Scene + updt := sc.UpdateStartAsync() ok := fv.ReplaceAction() - fv.Code.AsWidget().Scene.UpdateEndAsyncLayout(updt) + sc.UpdateEndAsyncLayout(updt) if !ok { break }