summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui.c b/ui.c
index 115d554..65255f9 100644
--- a/ui.c
+++ b/ui.c
@@ -456,6 +456,7 @@ static void unmark(struct Window *window) {
 }
 
 void uiShow(void) {
+	if (!hidden) return;
 	prevTitle[0] = '\0';
 	putp(EnterFocusMode);
 	putp(EnterPasteMode);
@@ -465,6 +466,7 @@ void uiShow(void) {
 }
 
 void uiHide(void) {
+	if (hidden) return;
 	mark(windows.ptrs[windows.show]);
 	hidden = true;
 	putp(ExitFocusMode);