1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix verbose warning being emitted

Fixes Ruby Bug 16281.
This commit is contained in:
Jeremy Evans 2019-10-27 15:23:05 -07:00 committed by aycabta
parent 5f6fbf8725
commit d6ed7a984c

View file

@ -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