summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/irb/cmd/ls.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/cmd/ls.rb b/lib/irb/cmd/ls.rb
index 87798a22d7..f163f4f9e6 100644
--- a/lib/irb/cmd/ls.rb
+++ b/lib/irb/cmd/ls.rb
@@ -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