about summary refs log tree commit diff
path: root/ui.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-10 21:34:23 -0500
committerJune McEnroe <june@causal.agency>2020-02-10 21:34:23 -0500
commit66fe89b84b8acc9c34ab03eeb17ca7b7f6eff1e5 (patch)
treeb528a06c7dc66879052d64926ed35592a4989806 /ui.c
parentOnly write out title on uiDraw (diff)
downloadcatgirl-66fe89b84b8acc9c34ab03eeb17ca7b7f6eff1e5.tar.gz
catgirl-66fe89b84b8acc9c34ab03eeb17ca7b7f6eff1e5.zip
Only write out title if it has changed
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c6
1 files changed, 5 insertions, 1 deletions
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);
8a8d72f17b4c56fc64c1659ac7b1cac22df&follow=1'>Remove unused mbs.len field from struct EditJune McEnroe 2022-02-19Remove unneeded includes in ui.cJune McEnroe 2022-02-19Reimplement tab completeJune McEnroe 2022-02-19Handle errors from editFn, etc.June McEnroe 2022-02-19Reimplement text macrosJune McEnroe 2022-02-19Factor out input handling to input.cJune McEnroe 2022-02-19Factor out window management to window.cJune McEnroe 2022-02-19Enable -Wmissing-prototypesJune McEnroe 2022-02-19Fix edit.[ch] license notice additional permissionsJune McEnroe 2022-02-19Run line editing testsJune McEnroe 2022-02-18Implement new line editing "library"June McEnroe 2022-02-18Simplify cursor positioning in inputJune McEnroe 2022-02-18Fix M-f orderingJune McEnroe 2022-02-12Move sandman build to scripts/MakefileJune McEnroe 2022-02-12Use compat_readpassphrase.c on LinuxJune McEnroe 2022-02-12Copy RPP defines from oconfigureJune McEnroe