projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c85405
)
Fix a type bug in colorize function
author
Loïc Blot
<lblot@infopro-digital.com>
Tue, 28 Mar 2017 12:50:17 +0000
(14:50 +0200)
committer
Loïc Blot
<lblot@infopro-digital.com>
Tue, 28 Mar 2017 12:50:17 +0000
(14:50 +0200)
This bug was introduced by
dd2f1d7551bfd70357ad4f3fb180704194272147
and reported by @kilbith
builtin/common/misc_helpers.lua
patch
|
blob
|
history
diff --git
a/builtin/common/misc_helpers.lua
b/builtin/common/misc_helpers.lua
index 1d5b51fc65113e1ea5bf99b81544e3af573c911f..cf76fbde9fb3de233de2834269c8e95ed918d3fa 100644
(file)
--- 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