mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Tidy _ui_draw_win_title
This commit is contained in:
parent
4cbfd5f0f9
commit
067c26eeea
@ -1359,12 +1359,17 @@ _ui_draw_win_title(void)
|
|||||||
gint unread = ui_unread();
|
gint unread = ui_unread();
|
||||||
|
|
||||||
if (unread != 0) {
|
if (unread != 0) {
|
||||||
snprintf(new_win_title, sizeof(new_win_title), "%c]0;%s%s (%d) - %s%c", '\033', "Profanity", version_str->str, unread, jid, '\007');
|
snprintf(new_win_title, sizeof(new_win_title),
|
||||||
|
"%c]0;%s%s (%d) - %s%c", '\033', "Profanity", version_str->str,
|
||||||
|
unread, jid, '\007');
|
||||||
} else {
|
} else {
|
||||||
snprintf(new_win_title, sizeof(new_win_title), "%c]0;%s%s - %s%c", '\033', "Profanity", version_str->str, jid, '\007');
|
snprintf(new_win_title, sizeof(new_win_title),
|
||||||
|
"%c]0;%s%s - %s%c", '\033', "Profanity", version_str->str, jid,
|
||||||
|
'\007');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
snprintf(new_win_title, sizeof(new_win_title), "%c]0;%s%s%c", '\033', "Profanity", version_str->str, '\007');
|
snprintf(new_win_title, sizeof(new_win_title), "%c]0;%s%s%c", '\033',
|
||||||
|
"Profanity", version_str->str, '\007');
|
||||||
}
|
}
|
||||||
|
|
||||||
g_string_free(version_str, TRUE);
|
g_string_free(version_str, TRUE);
|
||||||
|
Loading…
Reference in New Issue
Block a user