summaryrefslogtreecommitdiff
path: root/gocui/gocui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-17 23:39:03 -0600
committerJeff Carr <[email protected]>2024-01-17 23:39:03 -0600
commita0baba0821441d9cf38f0b33fe12fb96925c6236 (patch)
tree2aece2a890c66c36b08524e117753817078ee58c /gocui/gocui.go
parentbee272651ad38453aef27f098513f7be652c39bf (diff)
new paths
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gocui/gocui.go')
-rw-r--r--gocui/gocui.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/gocui/gocui.go b/gocui/gocui.go
index 1c2e8f7..6d924f8 100644
--- a/gocui/gocui.go
+++ b/gocui/gocui.go
@@ -56,7 +56,7 @@ func gocuiEvent(g *gocui.Gui) error {
if widgetView, _ := g.View("msg"); widgetView == nil {
log.Log(NOW, "handleEvent() create output widget now", maxX, maxY, mx, my)
makeOutputWidget(g, "this is a create before a mouse click")
- if (me.logStdout != nil) {
+ if me.logStdout != nil {
// setOutput(me.logStdout)
}
} else {
@@ -75,7 +75,7 @@ func setFrame(b bool) {
// TODO: figure out what this might be useful for
// what is this do? I made it just 2 lines for now. Is this useful for something?
v := SetView("global", 5, 10, 5, 10, 0) // x0, x1, y1, y2, overlap
- if (v == nil) {
+ if v == nil {
log.Log(ERROR, "setFrame() global failed")
}
v.Frame = b
@@ -86,7 +86,7 @@ func quit(g *gocui.Gui, v *gocui.View) error {
}
func SetView(name string, x0, y0, x1, y1 int, overlaps byte) *gocui.View {
- if (me.baseGui == nil) {
+ if me.baseGui == nil {
log.Log(ERROR, "SetView() ERROR: me.baseGui == nil")
return nil
}