Only write out title if it has changed

master
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
);
doupdate();
if (!to_status_line) return;
static char prevTitle[sizeof(title)];
if (!strcmp(title, prevTitle)) return;
strcpy(prevTitle, title);
putp(to_status_line);
putp(title);
putp(from_status_line);