mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-05 13:38:33 +00:00
Fix window width calculation when $lua returns newlines
I just hope it doesn't break anything.
This commit is contained in:
parent
ad51d7ae0b
commit
3736b141aa
@ -3236,7 +3236,8 @@ static void generate_text_internal(char *p, int p_max_size,
|
|||||||
#ifdef HAVE_ICONV
|
#ifdef HAVE_ICONV
|
||||||
iconv_convert(a, buff_in, p, p_max_size);
|
iconv_convert(a, buff_in, p, p_max_size);
|
||||||
#endif /* HAVE_ICONV */
|
#endif /* HAVE_ICONV */
|
||||||
if (obj->type != OBJ_text && obj->type != OBJ_execp && obj->type != OBJ_execpi) {
|
if (obj->type != OBJ_text && obj->type != OBJ_execp && obj->type != OBJ_execpi
|
||||||
|
&& obj->type != OBJ_lua && obj->type != OBJ_lua_parse) {
|
||||||
substitute_newlines(p, a - 2);
|
substitute_newlines(p, a - 2);
|
||||||
}
|
}
|
||||||
p += a;
|
p += a;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user