Add support for short_text

When the statusline is too long, try to use the short_text property of each status block before falling back to truncating it.
fixes #1092
This commit is contained in:
Ingo Bürk
2015-03-21 21:36:15 +01:00
parent 8272924117
commit c9019ada4e
2 changed files with 19 additions and 11 deletions

View File

@ -114,10 +114,9 @@ i3String *i3string_from_ucs2(const xcb_char2b_t *from_ucs2, size_t num_glyphs) {
* Note that this will not free the source string.
*/
i3String *i3string_copy(i3String *str) {
if (str->is_markup)
return i3string_from_markup(i3string_as_utf8(str));
else
return i3string_from_utf8(i3string_as_utf8(str));
i3String *copy = i3string_from_utf8(i3string_as_utf8(str));
copy->is_markup = str->is_markup;
return copy;
}
/*