diff options
author | tomoya ishida <tomoyapenguin@gmail.com> | 2023-02-27 17:43:51 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-02-27 08:44:02 +0000 |
commit | 92ed8e6f3f561ea25c411f94d6469497e9cb9204 (patch) | |
tree | 977f5ffd50143bbaf03abb146266c828e6b9c648 /lib/reline/general_io.rb | |
parent | 494c274b82d267ace9878202a65fb100cb5f62f7 (diff) | |
download | ruby-92ed8e6f3f561ea25c411f94d6469497e9cb9204.tar.gz |
[ruby/reline] Fix the cause of test_yamatanooroti randomly failing
(https://github.com/ruby/reline/pull/474)
* Add repeated input-delete test that fails on HEAD
* Use raw mode while readmultiline
Diffstat (limited to 'lib/reline/general_io.rb')
-rw-r--r-- | lib/reline/general_io.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/reline/general_io.rb b/lib/reline/general_io.rb index 92c76cbba1..9929846568 100644 --- a/lib/reline/general_io.rb +++ b/lib/reline/general_io.rb @@ -31,6 +31,10 @@ class Reline::GeneralIO @@input = val end + def self.with_raw_input + yield + end + def self.getc unless @@buf.empty? return @@buf.shift |