From 4961fdf75ead42902d13e847356bf8c554d0a9c9 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Fri, 3 Feb 2023 16:21:26 -0500 Subject: Flatten cache structs --- input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'input.c') 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; } -- cgit 1.4.1