diff options
author | pommicket <pommicket@gmail.com> | 2022-11-02 13:29:09 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-11-02 13:29:09 -0400 |
commit | b070e5ce01c829bd101b1e0eda49f1e25d9d125c (patch) | |
tree | f674fcbaad6b565e89d1ba973198024d958cac22 /ted.h | |
parent | 26d34216da04a2b91e65a0eeee9200ad808d48ce (diff) |
new settings system bugfixes, use ted_active_settings more
Diffstat (limited to 'ted.h')
-rw-r--r-- | ted.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |