projects
/
monky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc55c7d
)
Fix $execbar et al.
author
Pavel Labath
<pavelo@centrum.sk>
Thu, 7 Jan 2010 21:27:25 +0000
(22:27 +0100)
committer
Pavel Labath
<pavelo@centrum.sk>
Thu, 7 Jan 2010 21:27:25 +0000
(22:27 +0100)
src/specials.c
patch
|
blob
|
history
diff --git
a/src/specials.c
b/src/specials.c
index
4e96aad
..
27b8d83
100644
(file)
--- 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 */