about summary refs log tree commit diff
path: root/input.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2023-02-03 16:21:26 -0500
committerJune McEnroe <june@causal.agency>2023-02-03 16:21:26 -0500
commit4961fdf75ead42902d13e847356bf8c554d0a9c9 (patch)
treeb858648f0d38ffcf7e077f651159e5e2f5974850 /input.c
parentHandle missing LIST reply topic parameter (diff)
downloadcatgirl-4961fdf75ead42902d13e847356bf8c554d0a9c9.tar.gz
catgirl-4961fdf75ead42902d13e847356bf8c554d0a9c9.zip
Flatten cache structs
Diffstat (limited to '')
-rw-r--r--input.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/input.c b/input.c
index bcefee5..15f733d 100644
--- a/input.c
+++ b/input.c
@@ -300,12 +300,13 @@ static struct {
 } tab;
 
 static void tabAccept(void) {
-	cacheAccept(&tab.curs);
+	cacheTouch(&tab.curs);
+	tab.curs = (struct Cursor) {0};
 	tab.len = 0;
 }
 
 static void tabReject(void) {
-	cacheReject(&tab.curs);
+	tab.curs = (struct Cursor) {0};
 	tab.len = 0;
 }