Skip to content

Commit

Permalink
Fix possibly incorrect use of term-colors in Lua plugin (see #3505)
Browse files Browse the repository at this point in the history
  • Loading branch information
lminiero committed Jan 23, 2025
1 parent 7cf1b83 commit 20d97f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/lua/echotest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function resumeScheduler()
for index,task in ipairs(tasks) do
local success, result = coroutine.resume(task.co, task.id, task.tr, task.msg, task.jsep)
if not success then
logger.print(colors("[%{red}exception%{reset}]") .. " " .. dumpTable(result))
logger.print(colors.red .. " " .. dumpTable(result) .. colors.reset)
end
end
logger.print("Coroutines resumed")
Expand Down
2 changes: 1 addition & 1 deletion plugins/lua/videoroom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ function resumeScheduler()
for index,task in ipairs(tasks) do
local success, result = coroutine.resume(task.co, task.id, task.tr, task.msg, task.jsep)
if not success then
logger.print(colors("[%{red}exception%{reset}]") .. " " .. dumpTable(result))
logger.print(colors.red .. " " .. dumpTable(result) .. colors.reset)
end
end
logger.print("Coroutines resumed")
Expand Down

0 comments on commit 20d97f5

Please sign in to comment.