diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index adeba31c13..574793d67a 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -181,7 +181,11 @@ def reset(prompt = '', encoding:) Reline::IOGate.set_winch_handler do @resized = true end - @block_elem_width = Reline::Unicode.calculate_width('█') + if Reline::IOGate.win? + @block_elem_width = 1 + else + @block_elem_width = Reline::Unicode.calculate_width('█') + end end def resize