Skip to content

Commit

Permalink
fix(menu): dropbar_menu_entry_t separator losts metatable if merged w…
Browse files Browse the repository at this point in the history
…ith opts
  • Loading branch information
bekaboo committed May 29, 2023
1 parent 81117b2 commit bb8a146
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/dropbar/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ function dropbar_menu_entry_t:new(opts)
}),
padding = configs.opts.menu.entry.padding,
components = {},
}, opts),
}, opts or {}),
self
)
-- vim.tbl_deep_extend drops metatables
entry.separator = bar.dropbar_symbol_t:new(entry.separator)
for idx, component in ipairs(entry.components) do
component.entry = entry
component.entry_idx = idx
Expand Down

0 comments on commit bb8a146

Please sign in to comment.