From 7e85064ac77ea43e84d88eb910b0adb6f07d5d12 Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Tue, 21 May 2024 10:23:25 -0600 Subject: remove some ui pointer chasing There only exists a single Ui so there is no need to force a pointer redirection for accessing it. The Ui member was moved down in vis-core.h to punt around an issue with the way lua checks for existing objects. It may show up again as I flatten more structs. --- vis-prompt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis-prompt.c') diff --git a/vis-prompt.c b/vis-prompt.c index 474a32c..dd67161 100644 --- a/vis-prompt.c +++ b/vis-prompt.c @@ -182,7 +182,7 @@ void vis_prompt_show(Vis *vis, const char *title) { void vis_info_show(Vis *vis, const char *msg, ...) { va_list ap; va_start(ap, msg); - ui_info_show(vis->ui, msg, ap); + ui_info_show(&vis->ui, msg, ap); va_end(ap); } -- cgit v1.2.3