Skip to content

Commit

Permalink
Should fix Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Apr 16, 2020
1 parent fc0bf1d commit f4e0f4b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/byebug/interfaces/local_interface.rb
Expand Up @@ -44,10 +44,14 @@ def with_repl_like_sigint
# Disables the Readline completion proc installed by IRB on ruby2.7
def without_irb_completion
orig_completion = Readline.completion_proc
Readline.completion_proc = nil
yield
ensure
Readline.completion_proc = orig_completion
return yield unless orig_completion

begin
Readline.completion_proc = nil
yield
ensure
Readline.completion_proc = orig_completion
end
end
end
end

0 comments on commit f4e0f4b

Please sign in to comment.