Skip to content

Commit

Permalink
fix readline support on luajit
Browse files Browse the repository at this point in the history
regression added in f4ca4ea

Closes: slembcke#80
  • Loading branch information
N-R-K committed Dec 8, 2023
1 parent a37cc46 commit 886d07a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debugger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ if stdin_isatty and not os.getenv("DBG_NOREADLINE") then

-- Conditionally enable LuaJIT readline support.
pcall(function()
if dbg.read == nil and ffi then
if dbg.read == dbg_read and ffi then
local readline = ffi.load("readline")
dbg.read = function(prompt)
local cstr = readline.readline(prompt)
Expand Down

0 comments on commit 886d07a

Please sign in to comment.