Move Tab to extra
This commit is contained in:
parent
6246586bbd
commit
c30bf1612a
20
block.go
20
block.go
@ -140,3 +140,23 @@ func (d *Block) chopOverflow(ps []Point) []Point {
|
|||||||
}
|
}
|
||||||
return nps
|
return nps
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (b Block) InnerWidth() int {
|
||||||
|
return b.innerWidth
|
||||||
|
}
|
||||||
|
|
||||||
|
func (b Block) InnerHeight() int {
|
||||||
|
return b.innerHeight
|
||||||
|
}
|
||||||
|
|
||||||
|
func (b Block) InnerX() int {
|
||||||
|
return b.innerX
|
||||||
|
}
|
||||||
|
|
||||||
|
func (b Block) InnerY() int {
|
||||||
|
return b.innerY
|
||||||
|
}
|
||||||
|
|
||||||
|
func (b *Block) Align() {
|
||||||
|
b.align()
|
||||||
|
}
|
||||||
|
|||||||
@ -1,7 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/marigs/termui"
|
"github.com/gizak/termui"
|
||||||
|
"github.com/gizak/termui/extra"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||