summaryrefslogtreecommitdiff
path: root/lib/reline.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-10-27 15:23:05 -0700
committeraycabta <aycabta@gmail.com>2019-10-31 17:51:50 +0900
commitd6ed7a984c8fd991ce2614d2f228239f8eb490b5 (patch)
tree66d1a8c82fe6a89fc862afabaf970bb6262b72c2 /lib/reline.rb
parent5f6fbf8725b6e4bc026480d7b95f7ac21198c591 (diff)
Fix verbose warning being emitted
Fixes Ruby Bug 16281.
Diffstat (limited to 'lib/reline.rb')
-rw-r--r--lib/reline.rb2
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