summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-15 10:50:30 -0300
committerpommicket <pommicket@gmail.com>2023-08-15 10:50:30 -0300
commit4ea381d6a8a2a560213de896bab2aad02a70f937 (patch)
treec0a3abe1dc27717ff1ea598dd0dbd4867f457e5b /ted.c
parent50ecb07c724091ea2556fda8738d7500a77b0f9b (diff)
some settings stuff
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ted.c b/ted.c
index c06611c..730280a 100644
--- a/ted.c
+++ b/ted.c
@@ -180,7 +180,7 @@ void *ted_realloc(Ted *ted, void *p, size_t new_size) {
}
char *ted_get_root_dir_of(Ted *ted, const char *path) {
- Settings *settings = ted_active_settings(ted);
+ const Settings *settings = ted_active_settings(ted);
return settings_get_root_dir(settings, path);
}
@@ -237,7 +237,7 @@ LSP *ted_get_lsp_by_id(Ted *ted, LSPID id) {
}
LSP *ted_get_lsp(Ted *ted, const char *path, Language language) {
- Settings *settings = ted_get_settings(ted, path, language);
+ const Settings *settings = ted_get_settings(ted, path, language);
if (!settings->lsp_enabled)
return NULL;
@@ -293,7 +293,7 @@ LSP *ted_active_lsp(Ted *ted) {
}
u32 ted_active_color(Ted *ted, ColorSetting color) {
- return ted_active_settings(ted)->colors[color];
+ return settings_color(ted_active_settings(ted), color);
}
void ted_path_full(Ted *ted, const char *relpath, char *abspath, size_t abspath_size) {
@@ -405,7 +405,7 @@ void ted_load_fonts(Ted *ted) {
}
ted_free_fonts(ted);
- Settings *settings = ted_active_settings(ted);
+ const Settings *settings = ted_active_settings(ted);
ted->font = ted_load_multifont(ted, settings->font);
if (!ted->font) {
ted->font = ted_load_multifont(ted, "assets/font.ttf");