Skip to content

Commit

Permalink
Have some right padding
Browse files Browse the repository at this point in the history
instead of filling out an entire line
  • Loading branch information
k0kubun committed Mar 21, 2021
1 parent ddb3472 commit 6ac8f45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/irb/cmd/ls.rb
Expand Up @@ -28,7 +28,7 @@ class Output

def initialize(grep: nil)
@grep = grep
@line_width = screen_width
@line_width = screen_width - MARGIN.length # right padding
end

def dump(name, strs)
Expand Down Expand Up @@ -73,7 +73,7 @@ def col_widths(strs, cols:)
def screen_width
Reline.get_screen_size.last
rescue Errno::EINVAL # in `winsize': Invalid argument - <STDIN>
79
80
end
end
private_constant :Output
Expand Down

0 comments on commit 6ac8f45

Please sign in to comment.