summary refs log tree commit diff
path: root/input.c
diff options
context:
space:
mode:
authorJune McEnroe2022-02-20 14:49:17 -0500
committerJune McEnroe2022-02-20 14:49:17 -0500
commita281bdc5e1700e25022536a5482b1fb41ece4219 (patch)
treed56b6b620de45055cbd53f0d10098df13c26a661 /input.c
parent012fd67539cdf1c13edbb6047253e168d1814cd3 (diff)
Show indicator in status when window has pending input
Diffstat (limited to 'input.c')
-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;