summaryrefslogtreecommitdiff
path: root/lib/reline.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/reline.rb')
-rw-r--r--lib/reline.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/reline.rb b/lib/reline.rb
index d86c18d500..2f32f4c97c 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -318,11 +318,11 @@ module Reline
end
private def may_req_ambiguous_char_width
- ambiguous_width = 2 if Reline::IOGate == Reline::GeneralIO or STDOUT.is_a?(File)
- return if ambiguous_width
+ @ambiguous_width = 2 if Reline::IOGate == Reline::GeneralIO or STDOUT.is_a?(File)
+ return if @ambiguous_width
Reline::IOGate.move_cursor_column(0)
print "\u{25bd}"
- ambiguous_width = Reline::IOGate.cursor_pos.x
+ @ambiguous_width = Reline::IOGate.cursor_pos.x
Reline::IOGate.move_cursor_column(0)
Reline::IOGate.erase_after_cursor
end