From 1b299b40391b4ea0fe058b63aad14e3360e917d9 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Tue, 28 Mar 2017 14:50:17 +0200 Subject: Fix a type bug in colorize function This bug was introduced by dd2f1d7551bfd70357ad4f3fb180704194272147 and reported by @kilbith --- builtin/common/misc_helpers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin') diff --git a/builtin/common/misc_helpers.lua b/builtin/common/misc_helpers.lua index 1d5b51fc6..cf76fbde9 100644 --- a/builtin/common/misc_helpers.lua +++ b/builtin/common/misc_helpers.lua @@ -667,7 +667,7 @@ else end function core.colorize(color, message) - local lines = message:split("\n", true) + local lines = tostring(message):split("\n", true) local color_code = core.get_color_escape_sequence(color) for i, line in ipairs(lines) do -- cgit v1.2.3