mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-11 23:22:41 +09:00
@@ -91,6 +91,7 @@ func (t *TabList) Resize() {
|
||||
t.List[0].Node.Resize(w, h-iOffset)
|
||||
t.List[0].Resize()
|
||||
}
|
||||
t.TabWindow.Resize(w, h)
|
||||
}
|
||||
|
||||
// HandleEvent checks for a resize event or a mouse event on the tab bar
|
||||
|
||||
@@ -25,6 +25,10 @@ func NewTabWindow(w int, y int) *TabWindow {
|
||||
return tw
|
||||
}
|
||||
|
||||
func (w *TabWindow) Resize(width, height int) {
|
||||
w.width = width
|
||||
}
|
||||
|
||||
func (w *TabWindow) LocFromVisual(vloc buffer.Loc) int {
|
||||
x := -w.hscroll
|
||||
|
||||
|
||||
Reference in New Issue
Block a user