summaryrefslogtreecommitdiff
path: root/colorNew.go
diff options
context:
space:
mode:
Diffstat (limited to 'colorNew.go')
-rw-r--r--colorNew.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/colorNew.go b/colorNew.go
index f537c5c..76dcab6 100644
--- a/colorNew.go
+++ b/colorNew.go
@@ -27,6 +27,9 @@ func (tk *guiWidget) restoreEnableColor() {
// DONE ON DISABLE() WIDGET
// makes the button look disabled
func (tk *guiWidget) setColorDisable() {
+ if tk.color == nil {
+ tk.color = new(colorT)
+ }
// save the current color
tk.color.frame = superLightGrey
tk.color.fg = gocui.ColorBlack