fix string.upper is nil when theme changed
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
-- This file is always executed first.
|
-- This file is always executed first.
|
||||||
|
|
||||||
-- Override Lua's upper and lower functions with our own, which is always UTF-8.
|
-- Override Lua's upper and lower functions with our own, which is always UTF-8.
|
||||||
string.upper = Uppercase
|
if Uppercase then
|
||||||
string.lower = Lowercase
|
string.upper = Uppercase
|
||||||
Uppercase = nil -- don't use directly
|
string.lower = Lowercase
|
||||||
Lowercase = nil -- don't use directly
|
Uppercase = nil -- don't use directly
|
||||||
|
Lowercase = nil -- don't use directly
|
||||||
|
end
|
||||||
|
|
||||||
Trace = lua.Trace
|
Trace = lua.Trace
|
||||||
Warn = lua.Warn
|
Warn = lua.Warn
|
||||||
|
|||||||
Reference in New Issue
Block a user