Skip to content

Commit d6482eb

Browse files
Copilotlewis6991
andauthored
fix: add explicit tostring() for thread in string.format() for Lua 5.1 compatibility (#1461)
Co-authored-by: lewis6991 <7904185+lewis6991@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 5cdd276 commit d6482eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/gitsigns/async.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ end
170170
function Task:_traceback(msg, _lvl)
171171
_lvl = _lvl or 0
172172

173-
local thread = ('[%s] '):format(self._thread)
173+
local thread = ('[%s] '):format(tostring(self._thread))
174174

175175
local child = self._current_child
176176
if getmetatable(child) == Task then

0 commit comments

Comments
 (0)