aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar Robert Manea <gotmor@gmail.com>2009-05-05 19:55:04 +0200
committerGravatar Robert Manea <gotmor@gmail.com>2009-05-05 19:55:04 +0200
commit8d5988205fb924d0f962ae2341a9385a41341b17 (patch)
treed5cec56e27c7d3d2a428f12a7df017a57bb42b0d /uzbl.c
parenta5d8ef64e71864a2708c44a23e227974973e73b1 (diff)
small fix to build_progressbar_ascii()
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/uzbl.c b/uzbl.c
index 4752555..c9e822f 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -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, "ยท");