Reindent.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4651 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2007-12-05 13:06:55 +00:00 committed by exg
commit 1d74d1e21f

View file

@ -733,21 +733,21 @@ void statusbar_item_default_handler(SBAR_ITEM_REC *item, int get_size_only,
len = format_real_length(tmpstr, item->size); len = format_real_length(tmpstr, item->size);
tmpstr[len] = '\0'; tmpstr[len] = '\0';
} }
/* make sure the str is big enough to fill the /* make sure the str is big enough to fill the
requested size, so it won't corrupt screen */ requested size, so it won't corrupt screen */
len = format_get_length(tmpstr); len = format_get_length(tmpstr);
if (len < item->size) { if (len < item->size) {
char *fill; char *fill;
len = item->size-len; len = item->size-len;
fill = g_malloc(len + 1); fill = g_malloc(len + 1);
memset(fill, ' ', len); fill[len] = '\0'; memset(fill, ' ', len); fill[len] = '\0';
tmpstr2 = g_strconcat(tmpstr, fill, NULL); tmpstr2 = g_strconcat(tmpstr, fill, NULL);
g_free(fill); g_free(fill);
g_free(tmpstr); g_free(tmpstr);
tmpstr = tmpstr2; tmpstr = tmpstr2;
} }
tmpstr2 = update_statusbar_bg(tmpstr, item->bar->color); tmpstr2 = update_statusbar_bg(tmpstr, item->bar->color);
gui_printtext(item->xpos, item->bar->real_ypos, tmpstr2); gui_printtext(item->xpos, item->bar->real_ypos, tmpstr2);