Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c622f1

Browse files
committed
fix sizing of error windows
1 parent 76c153e commit 1c622f1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

col.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ func New(co *Col, basedir, name string, sizerFunc ...func(int) int) (w Plane) {
2828
last.Loc()
2929
tw := co.Tag.Win
3030
t := tag.New(co.dev, co.sp, image.Pt(co.size.X, co.tdy*2), pad, tw.Font, tw.Color)
31+
if name != "+Errors" {
32+
//g.aerr(fmt.Sprintf("open basedir=%q name=%q", basedir, name))
33+
}
3134
t.Open(basedir, name)
3235
t.Insert([]byte(" [Edit ,x]"), t.Len())
3336
lsize := sizeof(last.Loc())

main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ func ck() {
148148
}
149149
}
150150

151+
var g *Grid
152+
151153
// Put
152154
func main() {
153155
flag.Parse()
@@ -169,7 +171,7 @@ func main() {
169171
// Linux will segfault here if X is not present
170172
wind.Send(paint.Event{})
171173
ft := font.NewGoMedium(fsize)
172-
g := NewGrid(dev, image.ZP, winSize, ft, list...)
174+
g = NewGrid(dev, image.ZP, winSize, ft, list...)
173175

174176
// This in particular needs to go
175177
actCol = g.List[1].(*Col)

0 commit comments

Comments
 (0)