summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-22 15:54:59 -0500
committerJune McEnroe <june@causal.agency>2019-02-22 15:54:59 -0500
commit274a5f7d6e77443e2ad140590d05785277a577c4 (patch)
tree629baf62bd0c2e9e7fe64bac82d3623e8fe3bed7
parentReorganize input.c (diff)
downloadcatgirl-274a5f7d6e77443e2ad140590d05785277a577c4.tar.gz
catgirl-274a5f7d6e77443e2ad140590d05785277a577c4.zip
Update status line after scrolling and term events
-rw-r--r--ui.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui.c b/ui.c
index 89d3e76..c387a2d 100644
--- a/ui.c
+++ b/ui.c
@@ -441,7 +441,9 @@ static void keyCode(wchar_t code) {
 		break; case KEY_DC:        edit(win->tag, EditDelete, 0);
 		break; case KEY_BACKSPACE: edit(win->tag, EditBackspace, 0);
 		break; case KEY_ENTER:     edit(win->tag, EditEnter, 0);
+		break; default: return;
 	}
+	uiStatus();
 }
 
 static void keyChar(wchar_t ch) {
@@ -453,7 +455,10 @@ static void keyChar(wchar_t ch) {
 			break; case TermFocusOut: if (win) windowMark(win);
 			break; default: {}
 		}
-		if (event) return;
+		if (event) {
+			uiStatus();
+			return;
+		}
 	}
 	if (ch == Del) ch = L'\b';
 
bin/htagml.c?id=abda08060ecf83cf2ae3b47e7ba8af3701a5fb38&follow=1'>Swap-remove tags as they're foundJune McEnroe 2021-09-12Replace htagml regex with strncmpJune McEnroe 2021-09-11Also defer printing comment for lone close-parensJune McEnroe 2021-09-10Publish "git-comment"June McEnroe 2021-09-10Add git comment --pretty optionJune McEnroe 2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe 2021-09-08Up default min-repeat to 30 linesJune McEnroe 2021-09-08Handle dirty lines in git-commentJune McEnroe 2021-09-08Document and install git-commentJune McEnroe 2021-09-08Add repeat and all options to git-commentJune McEnroe 2021-09-08Add group threshold to git-commentJune McEnroe