refactor(#2826): singleton View class, WIP

This commit is contained in:
Alexander Courtis
2025-04-20 12:45:22 +10:00
parent 3a63717d3d
commit fa64574f16
2 changed files with 91 additions and 53 deletions

View File

@@ -7,7 +7,7 @@ local M = {}
function M.fn(opts)
if opts == nil then
-- reset to config values
view.configure_width()
view.View:configure_width()
view.resize()
return
end
@@ -16,7 +16,7 @@ function M.fn(opts)
local width_cfg = options.width
if width_cfg ~= nil then
view.configure_width(width_cfg)
view.View:configure_width(width_cfg)
view.resize()
return
end