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:
parent
425584b61e
commit
6c989c7131
@ -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>
|
||||
|
||||
* progress.c (create_image): Fix assertion that checks progress bar length
|
||||
|
@ -965,7 +965,7 @@ create_image (struct bar_progress *bp, double dl_total_time, bool done)
|
||||
int *cols_ret = &col;
|
||||
|
||||
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
|
||||
offset_cols = 0;
|
||||
offset_bytes = cols_to_bytes (bp->f_download, offset_cols, cols_ret);
|
||||
|
Loading…
Reference in New Issue
Block a user