1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Scroll to last character of filename in progress

This commit is contained in:
Tom Li 2014-11-16 12:03:10 +05:30 committed by Darshit Shah
parent 425584b61e
commit 6c989c7131
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-11-16 Tom Li <biergaizi2009@gmail.com>
* progress.c (create_image): Ensure that the last character of the filename
is scrolled to
2014-11-15 Darshit Shah <darnir@gmail.com> 2014-11-15 Darshit Shah <darnir@gmail.com>
* progress.c (create_image): Fix assertion that checks progress bar length * progress.c (create_image): Fix assertion that checks progress bar length

View File

@ -965,7 +965,7 @@ create_image (struct bar_progress *bp, double dl_total_time, bool done)
int *cols_ret = &col; int *cols_ret = &col;
if (((orig_filename_cols > MAX_FILENAME_COLS) && !opt.noscroll) && !done) if (((orig_filename_cols > MAX_FILENAME_COLS) && !opt.noscroll) && !done)
offset_cols = ((int) bp->tick) % (orig_filename_cols - MAX_FILENAME_COLS); offset_cols = ((int) bp->tick) % (orig_filename_cols - MAX_FILENAME_COLS + 1);
else else
offset_cols = 0; offset_cols = 0;
offset_bytes = cols_to_bytes (bp->f_download, offset_cols, cols_ret); offset_bytes = cols_to_bytes (bp->f_download, offset_cols, cols_ret);