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 --- tags.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tags.c') diff --git a/tags.c b/tags.c index e26ef6d..66ed36e 100644 --- a/tags.c +++ b/tags.c @@ -36,7 +36,7 @@ static bool is_source_file(char const *filename) { static void tags_generate_at_dir(Ted *ted, bool run_in_build_window, const char *dir, int depth) { - Settings const *settings = ted->settings; + Settings const *settings = ted_active_settings(ted); if (depth >= settings->tags_max_depth) { return; } @@ -385,7 +385,7 @@ static void tag_selector_close(Ted *ted) { // returns tag selected (should be free'd), or NULL if none was. static char *tag_selector_update(Ted *ted) { Selector *sel = &ted->tag_selector; - u32 color = ted->settings->colors[COLOR_TEXT]; + u32 color = ted_color(ted, COLOR_TEXT); sel->enable_cursor = true; // create selector entries based on search term -- cgit v1.2.3