From 66fe89b84b8acc9c34ab03eeb17ca7b7f6eff1e5 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 10 Feb 2020 21:34:23 -0500 Subject: Only write out title if it has changed --- ui.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ui.c') diff --git a/ui.c b/ui.c index 297fd7b..dcfb607 100644 --- a/ui.c +++ b/ui.c @@ -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); -- cgit 1.4.1