Skip to content

Commit

Permalink
Fix last patch's bug
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroAlvesV committed May 11, 2017
1 parent b9dcb2a commit abbaea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/abstk.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ local mode = nil
-- @param arg the mode
-------------------------------------------------
function abstk.set_mode(arg)
if arg == 'curses' or arg == 'gtk' then
if (arg == 'curses' and AbsCurses) or (arg == 'gtk' and AbsGtk) then
mode = arg
elseif os.getenv("DISPLAY") and AbsGtk then
mode = 'gtk'
Expand Down

0 comments on commit abbaea2

Please sign in to comment.