bugfix: update handlers on new/delete

This commit is contained in:
Kartik K. Agaram 2023-12-05 11:56:36 -08:00
parent 2477e2a603
commit 2073e1ca14
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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