diff options
author | aycabta <[email protected]> | 2021-03-23 00:49:58 +0900 |
---|---|---|
committer | aycabta <[email protected]> | 2021-03-24 15:43:10 +0900 |
commit | b764c8d3c05170214802a947b2fd32c91c6cfd68 (patch) | |
tree | 9585b881c401889901242d966e751015d862122e /lib | |
parent | a5b6baae97a31f24483b2b59744799852bacc7d1 (diff) |
[ruby/reline] Add Reline.ungetc to control buffer
https://github.com/ruby/reline/commit/43ac03c624
Diffstat (limited to 'lib')
-rw-r--r-- | lib/reline.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/reline.rb b/lib/reline.rb index 81ea9f9b58..a7bd4d9280 100644 --- a/lib/reline.rb +++ b/lib/reline.rb @@ -446,6 +446,10 @@ module Reline } end + def self.ungetc(c) + Reline::IOGate.ungetc(c) + end + def self.line_editor core.line_editor end |