Skip to content

Commit

Permalink
Revert "Support multibyte input"
Browse files Browse the repository at this point in the history
This reverts commit 6d9e548.
  • Loading branch information
aycabta committed Sep 13, 2019
1 parent 7e0f56f commit 06bbacc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/reline/ansi.rb
Expand Up @@ -26,8 +26,7 @@ def self.getc
unless @@buf.empty?
return @@buf.shift
end
c = @@input.raw(&:getbyte)
(c == 0x16 && @@input.raw(min: 0, tim: 0, &:getbyte)) || c
@@input.raw(&:getbyte)
end

def self.ungetc(c)
Expand Down

0 comments on commit 06bbacc

Please sign in to comment.