diff options
| author | Jeff Carr <[email protected]> | 2025-02-01 17:38:10 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-01 17:38:10 -0600 |
| commit | 9a3f9d0991df81a7259801905b7febc2bebe03e8 (patch) | |
| tree | bd615b543d75c595c4ee3577e77028e939acb77f /structs.go | |
| parent | 2062060dac99b4a6bda8705adfb1696cb01be50c (diff) | |
kinda don't believe it, but maybe new mouseMove()
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -35,7 +35,7 @@ type config struct { myTree *tree.TreeInfo // ? ctrlDown *tree.Node // shown if you click the mouse when the ctrl key is pressed currentWindow *guiWidget // this is the current tab or window to show - logStdout *tree.Node // where to show STDOUT + logStdout *guiWidget // where to show STDOUT startOutputW int // ? startOutputH int // ? helpLabel *gocui.View // ? @@ -63,7 +63,7 @@ type config struct { menubar bool // for windows stretchy bool // expand things like buttons to the maximum size margin bool // add space around the frames of windows - writeMutex sync.Mutex // TODO: writeMutex protects locks the write process + writeMutex sync.Mutex // writeMutex protects writes to *guiWidget (it's global right now maybe) fakefile *FakeFile // JUNK? used to attempt to write to the stdout window dtoggle bool // is a dropdown or combobox currently active? showHelp bool // toggle boolean for the help menu (deprecate?) @@ -131,8 +131,8 @@ func (w *guiWidget) Write(p []byte) (n int, err error) { w.tainted = true me.writeMutex.Lock() defer me.writeMutex.Unlock() - var tk *guiWidget - tk = me.logStdout.TK.(*guiWidget) + + tk := me.logStdout if tk.v == nil { // optionally write the output to /tmp s := fmt.Sprint(string(p)) |
