Only uiShow if hidden and only uiHide if shown
parent
1e226593ef
commit
4405b89f6c
2
ui.c
2
ui.c
|
@ -456,6 +456,7 @@ static void unmark(struct Window *window) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void uiShow(void) {
|
void uiShow(void) {
|
||||||
|
if (!hidden) return;
|
||||||
prevTitle[0] = '\0';
|
prevTitle[0] = '\0';
|
||||||
putp(EnterFocusMode);
|
putp(EnterFocusMode);
|
||||||
putp(EnterPasteMode);
|
putp(EnterPasteMode);
|
||||||
|
@ -465,6 +466,7 @@ void uiShow(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void uiHide(void) {
|
void uiHide(void) {
|
||||||
|
if (hidden) return;
|
||||||
mark(windows.ptrs[windows.show]);
|
mark(windows.ptrs[windows.show]);
|
||||||
hidden = true;
|
hidden = true;
|
||||||
putp(ExitFocusMode);
|
putp(ExitFocusMode);
|
||||||
|
|
Loading…
Reference in New Issue