summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-13 22:09:25 -0500
committerJune McEnroe <june@causal.agency>2020-02-13 22:09:25 -0500
commit4405b89f6c67937507b3bdc2faa48c75f308bf74 (patch)
tree44725d576dd07bd128461a38dafd4ecc5afae70e
parentRename procPipe to utilPipe (diff)
downloadcatgirl-4405b89f6c67937507b3bdc2faa48c75f308bf74.tar.gz
catgirl-4405b89f6c67937507b3bdc2faa48c75f308bf74.zip
Only uiShow if hidden and only uiHide if shown
-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);
d> 2019-02-18Remove hi line numberingJune McEnroe 2019-02-18Add Tag class to hiJune McEnroe 2019-02-17Generate HTML with hi -n -f html -o anchorJune McEnroe 2019-02-17Add hi -f html -o anchor for line number linksJune McEnroe 2019-02-17Simplify temp trap in upJune McEnroe 2019-02-17Add line numbers to hiJune McEnroe 2019-02-17Always split spans after newlinesJune McEnroe 2019-02-15Color format specifiers light cyan in vimJune McEnroe 2019-02-15Highlight Interp as yellowJune McEnroe 2019-02-15Highlight strings in sh command substitutionsJune McEnroe 2019-02-15Add nmap gpJune McEnroe 2019-02-14Avoid newline when copying URL to pasteboardJune McEnroe 2019-02-13Add forgotten "sixth" book of H2G2June McEnroe