Skip to content

Commit

Permalink
fix(unpack): fix unpack (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 authored Dec 17, 2023
1 parent 5a2759d commit a483f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/colorbox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ local FilteredColorNameToIndexMap = {}
local function _primary_color_name_filter(color_name, spec)
local unique = #spec.color_names <= 1
local shortest = string.len(color_name)
== numbers.min(string.len, table.unpack(spec.color_names))
== numbers.min(string.len, unpack(spec.color_names))
local handle_splits =
vim.split(spec.handle, "/", { plain = true, trimempty = true })
local matched = handle_splits[1]:lower() == color_name:lower()
Expand Down

0 comments on commit a483f98

Please sign in to comment.