summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-01 17:38:10 -0600
committerJeff Carr <[email protected]>2025-02-01 17:38:10 -0600
commit9a3f9d0991df81a7259801905b7febc2bebe03e8 (patch)
treebd615b543d75c595c4ee3577e77028e939acb77f /structs.go
parent2062060dac99b4a6bda8705adfb1696cb01be50c (diff)
kinda don't believe it, but maybe new mouseMove()
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/structs.go b/structs.go
index c6d8c69..902c3fc 100644
--- a/structs.go
+++ b/structs.go
@@ -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))