mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
|
Reline::IOGate.set_winch_handler do
|
||||||
@resized = true
|
@resized = true
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
def resize
|
def resize
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue