Only write out title if it has changed

weechat-hashes
C. McEnroe 2020-02-10 21:34:23 -05:00
parent 90eff04eda
commit 66fe89b84b
1 changed files with 5 additions and 1 deletions

6
ui.c
View File

@ -293,8 +293,12 @@ void uiDraw(void) {
BOTTOM, RIGHT BOTTOM, RIGHT
); );
doupdate(); doupdate();
if (!to_status_line) return; if (!to_status_line) return;
static char prevTitle[sizeof(title)];
if (!strcmp(title, prevTitle)) return;
strcpy(prevTitle, title);
putp(to_status_line); putp(to_status_line);
putp(title); putp(title);
putp(from_status_line); putp(from_status_line);