Skip to content

Instantly share code, notes, and snippets.

@haegrr
Created December 30, 2025 00:11
Show Gist options
  • Select an option

  • Save haegrr/7188f99ef662184f97c2f37770542cf2 to your computer and use it in GitHub Desktop.

Select an option

Save haegrr/7188f99ef662184f97c2f37770542cf2 to your computer and use it in GitHub Desktop.
telescope-52.patch
diff --color -ur a/telescope.lua b/telescope.lua
--- a/telescope.lua 2025-12-30 01:03:55
+++ b/telescope.lua 2025-12-30 01:09:14
@@ -5,6 +5,8 @@
-- @release 0.6
-- @class module
-- @module 'telescope'
+table.unpack = table.unpack or unpack
+
local _M = {}
local compat_env = require 'telescope.compat_env'
@@ -165,7 +167,7 @@
end
for i = 1, nargs do a[i] = tostring(v) end
for i = nargs+1, num_vars do a[i] = 'nil' end
- return (assertion_message_prefix .. message):format(unpack(a))
+ return (assertion_message_prefix .. message):format(table.unpack(a))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment