Skip to content

Commit

Permalink
Fix last patch's scope mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroAlvesV committed May 11, 2017
1 parent abbaea2 commit 80c0722
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/abstk/AbsCurses.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
local utf8

if _VERSION < "Lua 5.3" then
local has_dep, utf8 = pcall(require, 'lua-utf8')
local has_dep
has_dep, utf8 = pcall(require, 'lua-utf8')
if not has_dep then
utf8 = { len = string.len }
end
Expand Down
3 changes: 2 additions & 1 deletion src/abstk/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
local utf8

if _VERSION < "Lua 5.3" then
local has_dep, utf8 = pcall(require, 'lua-utf8')
local has_dep
has_dep, utf8 = pcall(require, 'lua-utf8')
if not has_dep then
utf8 = { len = string.len }
end
Expand Down

0 comments on commit 80c0722

Please sign in to comment.