Skip to content

Commit b77aaa0

Browse files
authored
fix(ui): deduplicate plugins when selecting multiple (#1491)
1 parent 4a8f813 commit b77aaa0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua/lazy/view/init.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,12 @@ function M:setup_modes()
306306
f, t = t, f
307307
end
308308
for i = f, t do
309-
plugins[#plugins + 1] = self.render:get_plugin(i)
309+
local plugin = self.render:get_plugin(i)
310+
if plugin then
311+
plugins[plugin.name] = plugin
312+
end
310313
end
314+
plugins = vim.tbl_values(plugins)
311315
else
312316
plugins[1] = self.render:get_plugin()
313317
end

0 commit comments

Comments
 (0)