We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 355c4e4 commit dd3549fCopy full SHA for dd3549f
lib/rdoc/stats/normal.rb
@@ -30,7 +30,7 @@ def print_file files_so_far, filename
30
# will be truncated if necessary.
31
size = IO.respond_to?(:console_size) ? IO.console_size : IO.console.winsize
32
terminal_width = size[1].to_i.nonzero? || 80
33
- max_filename_size = terminal_width - progress_bar.size
+ max_filename_size = (terminal_width - progress_bar.size) - 1
34
35
if filename.size > max_filename_size then
36
# Turn "some_long_filename.rb" to "...ong_filename.rb"
0 commit comments