mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-16 01:57:09 +00:00
Fix output of $combine when used in combination with $head
This commit is contained in:
parent
ade4f3fc0c
commit
44a9e75290
@ -124,7 +124,7 @@ void print_combine(struct text_object *obj, char *p, int p_max_size)
|
||||
generate_text_internal(&(buf[i][0]), max_user_text, *objsub);
|
||||
for(j=0; buf[i][j] != 0; j++) {
|
||||
if(buf[i][j] == '\t') buf[i][j] = ' ';
|
||||
if(buf[i][j] == '\n') {
|
||||
if(buf[i][j] == '\n' || buf[i][j] == 2) { //Some vars like $head use \002 instead of \n to separate lines
|
||||
buf[i][j] = 0;
|
||||
current[i]->row = strdup(&(buf[i][0])+nextstart);
|
||||
if(i==0 && (long)strlen(current[i]->row) > longest) longest = (long)strlen(current[i]->row);
|
||||
|
Loading…
Reference in New Issue
Block a user