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:
parent
450d1f2c5c
commit
94254117ee
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue