From b070e5ce01c829bd101b1e0eda49f1e25d9d125c Mon Sep 17 00:00:00 2001 From: pommicket Date: Wed, 2 Nov 2022 13:29:09 -0400 Subject: new settings system bugfixes, use ted_active_settings more --- ted.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ted.h') diff --git a/ted.h b/ted.h index 61e19c7..c014103 100644 --- a/ted.h +++ b/ted.h @@ -190,6 +190,7 @@ typedef enum { // this structure is used temporarily when loading settings // it's needed because we want more specific contexts to be dealt with last. typedef struct { + int index; // index in order of which part was read first. SettingsContext context; ConfigSection section; char *file; @@ -329,7 +330,7 @@ typedef struct Ted { TextBuffer *prev_active_buffer; Node *active_node; Settings *all_settings; // dynamic array of Settings. use Settings.context to figure out which one to use. - Settings *settings; // "default" settings + Settings *default_settings; float window_width, window_height; u32 key_modifier; // which of shift, alt, ctrl are down right now. v2 mouse_pos; -- cgit v1.2.3