summaryrefslogtreecommitdiff
path: root/gocui/tab.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-11 19:10:24 -0600
committerJeff Carr <[email protected]>2024-01-11 19:10:24 -0600
commit3b258d0ce0e20ffedf8804409a16abbe84f1d383 (patch)
tree0273746324f274f5c95e96a32b06911f4dd40e05 /gocui/tab.go
parentc4582b0b30e3020a92baf299572d8617872d45e5 (diff)
var value any
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gocui/tab.go')
-rw-r--r--gocui/tab.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/gocui/tab.go b/gocui/tab.go
index f3a6ef2..14f6203 100644
--- a/gocui/tab.go
+++ b/gocui/tab.go
@@ -24,8 +24,8 @@ func (w *guiWidget) Height() int {
}
func (n *node) gocuiSetWH(sizeW, sizeH int) {
- w := len(n.Text)
- lines := strings.Split(n.Text, "\n")
+ w := len(widget.GetString(n.value))
+ lines := strings.Split(widget.GetString(n.value), "\n")
h := len(lines)
tk := n.tk
@@ -78,7 +78,7 @@ func redoWindows(nextW int, nextH int) {
sizeW := w.Width() + me.WindowPadW
sizeH := w.Height()
nextW += sizeW
- log.Log(NOW, "redoWindows() start nextW,H =", nextW, nextH, "gocuiSize.W,H =", sizeW, sizeH, n.Name)
+ log.Log(NOW, "redoWindows() start nextW,H =", nextW, nextH, "gocuiSize.W,H =", sizeW, sizeH, n.progname)
if n.hasTabs {
n.redoTabs(me.TabW, me.TabH)
@@ -105,7 +105,7 @@ func (p *node) redoTabs(nextW int, nextH int) {
sizeW := w.Width() + me.TabPadW
sizeH := w.Height()
- log.Log(NOW, "redoTabs() start nextW,H =", nextW, nextH, "gocuiSize.W,H =", sizeW, sizeH, n.Name)
+ log.Log(NOW, "redoTabs() start nextW,H =", nextW, nextH, "gocuiSize.W,H =", sizeW, sizeH, n.progname)
nextW += sizeW
}
}