Only write out title if it has changed
parent
90eff04eda
commit
66fe89b84b
6
ui.c
6
ui.c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue