aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLoïc Blot <lblot@infopro-digital.com>2017-03-28 14:50:17 +0200
committerLoïc Blot <lblot@infopro-digital.com>2017-03-28 14:50:17 +0200
commit1b299b40391b4ea0fe058b63aad14e3360e917d9 (patch)
tree485d993b712df19bc1ab5f10d8f1dae0ea9289d2 /builtin
parent7c85405d96bf10afa83192b3820bacf6e7ccea9f (diff)
downloadminetest-1b299b40391b4ea0fe058b63aad14e3360e917d9.tar.gz
minetest-1b299b40391b4ea0fe058b63aad14e3360e917d9.tar.bz2
minetest-1b299b40391b4ea0fe058b63aad14e3360e917d9.zip
Fix a type bug in colorize function
This bug was introduced by dd2f1d7551bfd70357ad4f3fb180704194272147 and reported by @kilbith
Diffstat (limited to 'builtin')
-rw-r--r--builtin/common/misc_helpers.lua2
1 files changed, 1 insertions, 1 deletions
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