diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-10-27 15:23:05 -0700 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-10-31 17:51:50 +0900 |
commit | d6ed7a984c8fd991ce2614d2f228239f8eb490b5 (patch) | |
tree | 66d1a8c82fe6a89fc862afabaf970bb6262b72c2 /lib | |
parent | 5f6fbf8725b6e4bc026480d7b95f7ac21198c591 (diff) | |
download | ruby-d6ed7a984c8fd991ce2614d2f228239f8eb490b5.tar.gz |
Fix verbose warning being emitted
Fixes Ruby Bug 16281.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/reline.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline.rb b/lib/reline.rb index f8ffd5a707..0873e9bcc3 100644 --- a/lib/reline.rb +++ b/lib/reline.rb @@ -319,7 +319,7 @@ module Reline private def may_req_ambiguous_char_width @ambiguous_width = 2 if Reline::IOGate == Reline::GeneralIO or STDOUT.is_a?(File) - return if @ambiguous_width + return if ambiguous_width Reline::IOGate.move_cursor_column(0) print "\u{25bd}" @ambiguous_width = Reline::IOGate.cursor_pos.x |