mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 10:35:10 +00:00
Make evaluate useful (#226)
Make evaluate actually double-evaluate itself, allowing for constructs such as: `${eval $${addr ${gw_iface}}}' to work.
This commit is contained in:
parent
8dda4c3995
commit
d8cbdffe95
@ -556,7 +556,9 @@ void print_cached(struct text_object *obj, char *p, int p_max_size)
|
||||
|
||||
void print_evaluate(struct text_object *obj, char *p, int p_max_size)
|
||||
{
|
||||
evaluate(obj->data.s, p, p_max_size);
|
||||
std::vector<char> buf(max_user_text.get(*state));
|
||||
evaluate(obj->data.s, &buf[0], buf.size());
|
||||
evaluate(&buf[0], p, p_max_size);
|
||||
}
|
||||
|
||||
int if_empty_iftest(struct text_object *obj)
|
||||
|
Loading…
Reference in New Issue
Block a user