mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] The width of block elements is 1 on Windows
https://github.com/ruby/reline/commit/5f4a75c7a0
This commit is contained in:
parent
2c2a017fe8
commit
f625645a37
1 changed files with 5 additions and 1 deletions
|
@ -181,7 +181,11 @@ class Reline::LineEditor
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue