Only uiShow if hidden and only uiHide if shown

master
C. McEnroe 2020-02-13 22:09:25 -05:00
parent 1e226593ef
commit 4405b89f6c
1 changed files with 2 additions and 0 deletions

2
ui.c
View File

@ -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);