summary refs log tree commit diff
path: root/input.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-02-20 14:49:17 -0500
committerJune McEnroe <june@causal.agency>2022-02-20 14:49:17 -0500
commita281bdc5e1700e25022536a5482b1fb41ece4219 (patch)
treed56b6b620de45055cbd53f0d10098df13c26a661 /input.c
parentUse separate edit buffers for each ID (diff)
downloadcatgirl-a281bdc5e1700e25022536a5482b1fb41ece4219.tar.gz
catgirl-a281bdc5e1700e25022536a5482b1fb41ece4219.zip
Show indicator in status when window has pending input
Diffstat (limited to '')
-rw-r--r--input.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/input.c b/input.c
index b578d17..ad6d533 100644
--- a/input.c
+++ b/input.c
@@ -227,6 +227,10 @@ void inputUpdate(void) {
 	wmove(uiInput, y, pos);
 }
 
+bool inputPending(uint id) {
+	return edits[id].len;
+}
+
 static const struct {
 	const wchar_t *name;
 	const wchar_t *string;