diff options
author | Robert Manea <gotmor@gmail.com> | 2009-05-05 19:55:04 +0200 |
---|---|---|
committer | Robert Manea <gotmor@gmail.com> | 2009-05-05 19:55:04 +0200 |
commit | 8d5988205fb924d0f962ae2341a9385a41341b17 (patch) | |
tree | d5cec56e27c7d3d2a428f12a7df017a57bb42b0d /uzbl.c | |
parent | a5d8ef64e71864a2708c44a23e227974973e73b1 (diff) |
small fix to build_progressbar_ascii()
Diffstat (limited to 'uzbl.c')
-rw-r--r-- | uzbl.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -421,12 +421,8 @@ build_progressbar_ascii(int percent) { l = (int)(l+.5)>=(int)l ? l+.5 : l; g_string_append(bar, "["); - for(i=0; i<(int)l; i++) - if(i==width) { - g_string_append(bar, ">"); - break; - } else - g_string_append(bar, "="); + for(i=1; i<(int)l; i++) + g_string_append(bar, "="); for(; i<width; i++) g_string_append(bar, "ยท"); |