about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/ui/titlebar.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c
index 326dbf8b..a3299946 100644
--- a/src/ui/titlebar.c
+++ b/src/ui/titlebar.c
@@ -109,8 +109,11 @@ void
 title_bar_console(void)
 {
     werase(win);
-    typing = FALSE;
+    if (typing_elapsed) {
+        g_timer_destroy(typing_elapsed);
+    }
     typing_elapsed = NULL;
+    typing = FALSE;
 
     _title_bar_draw();
 }