bugfix: update handlers on new/delete
This commit is contained in:
parent
2477e2a603
commit
2073e1ca14
|
@ -2,8 +2,10 @@ new_pane_button = function(x, y, r)
|
|||
return overflowable_button('new', x, y, r,
|
||||
function()
|
||||
Show_menu = nil
|
||||
Current_pane.car = car
|
||||
Current_pane_index = Current_pane_index+1
|
||||
table.insert(Panes, Current_pane_index, new_pane())
|
||||
Current_pane = Panes[Current_pane_index]
|
||||
car = {}
|
||||
end)
|
||||
end
|
||||
end
|
|
@ -13,6 +13,7 @@ delete_pane_button = function(x, y, r)
|
|||
Current_pane_index = Current_pane_index-1
|
||||
end
|
||||
Current_pane = Panes[Current_pane_index]
|
||||
car = Current_pane.car or {}
|
||||
end,
|
||||
--[[final button]] true)
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue