From ca9ebd95041730c94b452eda40b03d221d7fe544 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Thu, 7 Jan 2010 22:27:25 +0100 Subject: [PATCH] Fix $execbar et al. --- src/specials.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/specials.c b/src/specials.c index 4e96aad..27b8d83 100644 --- a/src/specials.c +++ b/src/specials.c @@ -491,17 +491,11 @@ static void new_bar_in_x11(struct text_object *obj, char *buf, int usage) struct special_t *s = 0; struct bar *b = obj->special_data; - if ((output_methods & TO_X) == 0) - return; - - if (!b) - return; - s = new_special(buf, BAR); s->arg = usage; - s->width = b->width; - s->height = b->height; + s->width = b ? b->width : default_bar_width; + s->height = b ? b->height : default_bar_height; } #endif /* X11 */ -- 1.7.9.5