diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-10 14:04:20 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-10 14:04:20 +0100 |
| commit | 86240920e4fd8c208ffb0d4b6c599e91e0d79961 (patch) | |
| tree | a386bc2f09705964de124b039392601255ab1b00 /src/unix/main_unix.cpp | |
| parent | e039ec4d059d49c6fafecbc9aec7536498baa8ec (diff) | |
| parent | d3d0ddfc9e21bf7afe3611c5401f3b6cca70d34f (diff) | |
Merge branch 'v2' of https://github.com/aldrik-ramaekers/text-search into v2
Diffstat (limited to 'src/unix/main_unix.cpp')
| -rw-r--r-- | src/unix/main_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/main_unix.cpp b/src/unix/main_unix.cpp index 8fdbc1b..86c38cd 100644 --- a/src/unix/main_unix.cpp +++ b/src/unix/main_unix.cpp @@ -29,6 +29,7 @@ bool program_running = true; char config_path[MAX_INPUT_LENGTH]; static const char* _ts_platform_get_config_file_path(char* buffer) { + // TODO: this can be easily merged. #ifdef __APPLE__ char* env = getenv("HOME"); char path_buf[MAX_INPUT_LENGTH]; @@ -45,7 +46,6 @@ static const char* _ts_platform_get_config_file_path(char* buffer) { char path_buf[MAX_INPUT_LENGTH]; snprintf(path_buf, MAX_INPUT_LENGTH, "%s%s", env, "/text-search/"); snprintf(buffer, MAX_INPUT_LENGTH, "%.*s%s", MAX_INPUT_LENGTH-10, path_buf, "imgui.ini"); - printf(); if (!ts_platform_dir_exists(path_buf)) { mkdir(path_buf, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); } |
