mirror of
https://github.com/akiyosi/goneovim.git
synced 2025-08-31 06:59:39 +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
|
||||
area *ui.Area
|
||||
areaHandler *AreaHandler
|
||||
areaBox *ui.Box
|
||||
close chan bool
|
||||
popup *PopupMenu
|
||||
finder *Finder
|
||||
|
@ -70,6 +71,7 @@ func initWindow(box *ui.Box, width, height int) *ui.Window {
|
|||
}
|
||||
editor.width = width
|
||||
editor.height = height
|
||||
editor.areaBox.SetSize(width, height)
|
||||
editor.area.SetSize(width, height)
|
||||
editor.tabline.resize(width, editor.tablineHeight)
|
||||
editor.resize()
|
||||
|
@ -126,6 +128,7 @@ func InitEditor() error {
|
|||
window: window,
|
||||
area: ah.area,
|
||||
areaHandler: ah,
|
||||
areaBox: areaBox,
|
||||
mode: "normal",
|
||||
close: make(chan bool),
|
||||
cursor: cursor,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue