summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2007-12-05 13:06:55 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2007-12-05 13:06:55 +0000
commit1d74d1e21fbbc332f9bc013e579571894742df22 (patch)
tree7250b5e5aee0fde467a3a36b763df0c1efa79136 /src
parent338834c08c3e0c8b1350d222fc9d304d2296c560 (diff)
downloadirssi-1d74d1e21fbbc332f9bc013e579571894742df22.zip
Reindent.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4651 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/fe-text/statusbar.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/fe-text/statusbar.c b/src/fe-text/statusbar.c
index 4c350945..34936e70 100644
--- a/src/fe-text/statusbar.c
+++ b/src/fe-text/statusbar.c
@@ -733,21 +733,21 @@ void statusbar_item_default_handler(SBAR_ITEM_REC *item, int get_size_only,
len = format_real_length(tmpstr, item->size);
tmpstr[len] = '\0';
}
- /* make sure the str is big enough to fill the
- requested size, so it won't corrupt screen */
- len = format_get_length(tmpstr);
- if (len < item->size) {
- char *fill;
-
- len = item->size-len;
- fill = g_malloc(len + 1);
- memset(fill, ' ', len); fill[len] = '\0';
-
- tmpstr2 = g_strconcat(tmpstr, fill, NULL);
- g_free(fill);
- g_free(tmpstr);
- tmpstr = tmpstr2;
- }
+ /* make sure the str is big enough to fill the
+ requested size, so it won't corrupt screen */
+ len = format_get_length(tmpstr);
+ if (len < item->size) {
+ char *fill;
+
+ len = item->size-len;
+ fill = g_malloc(len + 1);
+ memset(fill, ' ', len); fill[len] = '\0';
+
+ tmpstr2 = g_strconcat(tmpstr, fill, NULL);
+ g_free(fill);
+ g_free(tmpstr);
+ tmpstr = tmpstr2;
+ }
tmpstr2 = update_statusbar_bg(tmpstr, item->bar->color);
gui_printtext(item->xpos, item->bar->real_ypos, tmpstr2);