diff options
author | pommicket <pommicket@gmail.com> | 2022-07-29 14:29:36 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-07-29 14:33:32 -0400 |
commit | ab65fe136f7a8739b78aaa4801a9fb761a301417 (patch) | |
tree | d9193726574c6ed7884562ad2c376bef48905b58 /tags.c | |
parent | 00fce97eb96fc2f1c1bfd8daf4f795ff36cf98c0 (diff) |
per-language settings
also fixed ctrl+/ in go
Diffstat (limited to 'tags.c')
-rw-r--r-- | tags.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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->settings; if (depth >= settings->tags_max_depth) { return; } @@ -199,7 +199,7 @@ bool tag_goto(Ted *ted, char const *tag) { bool already_regenerated_tags; already_regenerated_tags = false; top:; - Settings const *settings = &ted->settings; + Settings const *settings = ted_active_settings(ted); char const *tags_name = tags_filename(ted, true); if (!tags_name) return false; @@ -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->settings->colors[COLOR_TEXT]; sel->enable_cursor = true; // create selector entries based on search term |