Skip to content

Commit b54281d

Browse files
authored
Merge pull request #27 from apenney/ap/fix-lua
Change file:reads to be *a instead of a*
2 parents 05e6228 + 89044bb commit b54281d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/themepark.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function themepark:init_theme(theme)
186186
end
187187
local file = io.open(theme_file)
188188
if file then
189-
local script = file:read('a*')
189+
local script = file:read('*a')
190190
file:close()
191191

192192
local func, msg = load(script, theme_file, 't')
@@ -243,7 +243,7 @@ function themepark:add_topic(topic, options)
243243
error("No topic '" .. topic .. "' in theme '" .. theme_name .. "'")
244244
end
245245

246-
local script = file:read('a*')
246+
local script = file:read('*a')
247247
file:close()
248248

249249
local func, msg = load(script, filename, 't')

0 commit comments

Comments
 (0)