ruby-changes:65641
From: aycabta <ko1@a...>
Date: Wed, 24 Mar 2021 15:43:54 +0900 (JST)
Subject: [ruby-changes:65641] b764c8d3c0 (master): [ruby/reline] Add Reline.ungetc to control buffer
https://git.ruby-lang.org/ruby.git/commit/?id=b764c8d3c0 From b764c8d3c05170214802a947b2fd32c91c6cfd68 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Tue, 23 Mar 2021 00:49:58 +0900 Subject: [ruby/reline] Add Reline.ungetc to control buffer https://github.com/ruby/reline/commit/43ac03c624 --- lib/reline.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/reline.rb b/lib/reline.rb index 81ea9f9..a7bd4d9 100644 --- a/lib/reline.rb +++ b/lib/reline.rb @@ -446,6 +446,10 @@ module Reline https://github.com/ruby/ruby/blob/trunk/lib/reline.rb#L446 } end + def self.ungetc(c) + Reline::IOGate.ungetc(c) + end + def self.line_editor core.line_editor end -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/