From 4405b89f6c67937507b3bdc2faa48c75f308bf74 Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Thu, 13 Feb 2020 22:09:25 -0500 Subject: Only uiShow if hidden and only uiHide if shown --- ui.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui.c') 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); -- cgit 1.4.1-2-gfad0