about summary refs log tree commit diff
path: root/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c32
1 files changed, 17 insertions, 15 deletions
diff --git a/ui.c b/ui.c
index b91cb3d..97f81b3 100644
--- a/ui.c
+++ b/ui.c
@@ -300,21 +300,6 @@ void uiDraw(void) {
 	fflush(stdout);
 }
 
-void uiShow(void) {
-	prevTitle[0] = '\0';
-	putp(EnterFocusMode);
-	putp(EnterPasteMode);
-	fflush(stdout);
-	hidden = false;
-}
-
-void uiHide(void) {
-	hidden = true;
-	putp(ExitFocusMode);
-	putp(ExitPasteMode);
-	endwin();
-}
-
 struct Style {
 	attr_t attr;
 	enum Color fg, bg;
@@ -450,6 +435,23 @@ static void unmark(struct Window *window) {
 	statusUpdate();
 }
 
+void uiShow(void) {
+	prevTitle[0] = '\0';
+	putp(EnterFocusMode);
+	putp(EnterPasteMode);
+	fflush(stdout);
+	hidden = false;
+	unmark(windows.active);
+}
+
+void uiHide(void) {
+	mark(windows.active);
+	hidden = true;
+	putp(ExitFocusMode);
+	putp(ExitPasteMode);
+	endwin();
+}
+
 static void windowScroll(struct Window *window, int n) {
 	mark(window);
 	window->scroll += n;
='/src/commit/bin/hi.c?id=9de0fd86e861c2b3a06a0d9ac7063a428d8a691c&follow=1'>Fix matching make tags with no sourcesJune McEnroe 2019-12-19Avoid matching := assignments as tagsJune McEnroe 2019-12-18Hide line numbers when rendering mdocJune McEnroe Hack: output an extra <td> after rendering mdoc so that line numbers can be hidden based on there being three. This required splitting source-filter and about-filter since on about pages there is no table. 2019-12-18Customize cgit CSSJune McEnroe 2019-12-18Use :target rather than :focus pseudo-classJune McEnroe :target persists after you click on something else. 2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe 2019-12-18Add git.causal.agency cgit configJune McEnroe 2019-12-18Bail from hi if input is binaryJune McEnroe NULs in the input cause an infinite loop in htmlEscape, not to mention regexes obviously not working, etc. 2019-12-16Post "cgit setup"June McEnroe