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-core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis-core.h') diff --git a/vis-core.h b/vis-core.h index 9746fc9..7d729f7 100644 --- a/vis-core.h +++ b/vis-core.h @@ -168,7 +168,6 @@ struct Win { }; struct Vis { - Ui *ui; /* user interface responsible for visual appearance */ File *files; /* all files currently managed by this editor instance */ File *command_file; /* special internal file used to store :-command prompt */ File *search_file; /* special internal file used to store /,? search prompt */ @@ -176,6 +175,7 @@ struct Vis { Win *windows; /* all windows currently managed by this editor instance */ Win *win; /* currently active/focused window */ Win *message_window; /* special window to display multi line messages */ + Ui ui; /* user interface responsible for visual appearance */ Register registers[VIS_REG_INVALID]; /* registers used for text manipulations yank/put etc. and macros */ Macro *recording, *last_recording; /* currently (if non NULL) and least recently recorded macro */ const Macro *replaying; /* macro currently being replayed */ -- cgit v1.2.3