Skip to content

Commit f646b9b

Browse files
committed
should use $stdin.gets instead of gets
`Kernel#gets` reads from ARGF. fix #156
1 parent 2aacf6c commit f646b9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/debug/console.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def quit n
4040
def ask prompt
4141
setup_interrupt do
4242
print prompt
43-
(gets || '').strip
43+
($stdin.gets || '').strip
4444
end
4545
end
4646

0 commit comments

Comments
 (0)