mirror of
https://github.com/akiyosi/goneovim.git
synced 2025-09-01 07:19:56 +02:00
areaBox resize
This commit is contained in:
parent
3837e984d3
commit
d8d5fabfa1
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,7 @@ type Editor struct {
|
||||||
window *ui.Window
|
window *ui.Window
|
||||||
area *ui.Area
|
area *ui.Area
|
||||||
areaHandler *AreaHandler
|
areaHandler *AreaHandler
|
||||||
|
areaBox *ui.Box
|
||||||
close chan bool
|
close chan bool
|
||||||
popup *PopupMenu
|
popup *PopupMenu
|
||||||
finder *Finder
|
finder *Finder
|
||||||
|
@ -70,6 +71,7 @@ func initWindow(box *ui.Box, width, height int) *ui.Window {
|
||||||
}
|
}
|
||||||
editor.width = width
|
editor.width = width
|
||||||
editor.height = height
|
editor.height = height
|
||||||
|
editor.areaBox.SetSize(width, height)
|
||||||
editor.area.SetSize(width, height)
|
editor.area.SetSize(width, height)
|
||||||
editor.tabline.resize(width, editor.tablineHeight)
|
editor.tabline.resize(width, editor.tablineHeight)
|
||||||
editor.resize()
|
editor.resize()
|
||||||
|
@ -126,6 +128,7 @@ func InitEditor() error {
|
||||||
window: window,
|
window: window,
|
||||||
area: ah.area,
|
area: ah.area,
|
||||||
areaHandler: ah,
|
areaHandler: ah,
|
||||||
|
areaBox: areaBox,
|
||||||
mode: "normal",
|
mode: "normal",
|
||||||
close: make(chan bool),
|
close: make(chan bool),
|
||||||
cursor: cursor,
|
cursor: cursor,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue