From 07b8e9d8a293d63fd9c1059968b53ad396e9f013 Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Sat, 11 May 2024 10:38:28 -0600 Subject: cleanup vis event interface This removes the function pointer interface which was adding needless complexity and making it difficult to add new events. Now if new events are only meant for lua they only need to be added to the lua interface. This will also have a minor reduction in runtime memory usage and produce a smaller binary. The only runtime difference is that QUIT happens after all windows have been closed and their files freed. --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7e77c7f..a2f1df3 100644 --- a/Makefile +++ b/Makefile @@ -4,20 +4,20 @@ REGEX_SRC ?= text-regex.c SRC = array.c \ buffer.c \ + event-basic.c \ libutf.c \ main.c \ map.c \ sam.c \ - text.c \ text-common.c \ text-io.c \ text-iterator.c \ text-motions.c \ text-objects.c \ text-util.c \ + text.c \ ui-terminal.c \ view.c \ - vis.c \ vis-lua.c \ vis-marks.c \ vis-modes.c \ @@ -25,8 +25,9 @@ SRC = array.c \ vis-operators.c \ vis-prompt.c \ vis-registers.c \ - vis-text-objects.c \ vis-subprocess.c \ + vis-text-objects.c \ + vis.c \ $(REGEX_SRC) OBJ = $(SRC:%.c=obj/%.o) -- cgit v1.2.3