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 8f9f4c1 commit a446cb1Copy full SHA for a446cb1
lib/rdoc/stats/normal.rb
@@ -31,7 +31,7 @@ def print_file files_so_far, filename
31
# will be truncated if necessary.
32
size = IO.respond_to?(:console_size) ? IO.console_size : IO.console.winsize
33
terminal_width = size[1].to_i.nonzero? || 80
34
- max_filename_size = terminal_width - progress_bar.size
+ max_filename_size = (terminal_width - progress_bar.size) - 1
35
36
if filename.size > max_filename_size then
37
# Turn "some_long_filename.rb" to "...ong_filename.rb"
0 commit comments