We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4f0cd3 commit a6504acCopy full SHA for a6504ac
lib/reline.rb
@@ -433,8 +433,7 @@ def readline(prompt = '', add_hist = false)
433
end
434
435
private def read_2nd_character_of_key_sequence(keyseq_timeout, buffer, c, block)
436
- succ_c = io_gate.getc(keyseq_timeout / 1000)
437
-
+ succ_c = io_gate.getc(keyseq_timeout.fdiv(1000))
438
if succ_c
439
case key_stroke.match_status(buffer.dup.push(succ_c))
440
when :unmatched
@@ -462,7 +461,7 @@ def readline(prompt = '', add_hist = false)
462
461
463
464
private def read_escaped_key(keyseq_timeout, c, block)
465
- escaped_c = io_gate.getc(keyseq_timeout / 1000)
+ escaped_c = io_gate.getc(keyseq_timeout.fdiv(1000))
466
467
if escaped_c.nil?
468
block.([Reline::Key.new(c, c, false)])
0 commit comments