1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] Have some right padding

instead of filling out an entire line

6ac8f45f5f
This commit is contained in:
Takashi Kokubun 2021-03-21 00:01:07 -07:00 committed by git
parent 450d1f2c5c
commit 94254117ee

View file

@ -28,7 +28,7 @@ module IRB
def initialize(grep: nil)
@grep = grep
@line_width = screen_width
@line_width = screen_width - MARGIN.length # right padding
end
def dump(name, strs)
@ -73,7 +73,7 @@ module IRB
def screen_width
Reline.get_screen_size.last
rescue Errno::EINVAL # in `winsize': Invalid argument - <STDIN>
79
80
end
end
private_constant :Output