diff options
author | pommicket <pommicket@gmail.com> | 2023-07-21 17:02:25 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-07-21 17:02:25 -0400 |
commit | e2d3a5d3c72206ffed7a8d252f2050fe0333c9bf (patch) | |
tree | 8fbc6077aa15f0bcfe8e377a3a295c200568d944 | |
parent | b303a87db03522795ec8697415b61750d5f8c565 (diff) |
fix absolute font paths
-rw-r--r-- | control | 2 | ||||
-rw-r--r-- | ted.c | 5 | ||||
-rw-r--r-- | ted.h | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -1,5 +1,5 @@ Package: ted -Version: 2.4.1 +Version: 2.4.2 Section: text Priority: optional Architecture: amd64 @@ -272,6 +272,11 @@ static bool ted_is_regular_buffer(Ted *ted, TextBuffer *buffer) { } Status ted_get_file(Ted const *ted, const char *name, char *out, size_t outsz) { + if (path_is_absolute(name)) { + str_cpy(out, outsz, name); + if (fs_file_exists(out)) + return true; + } if (ted->search_start_cwd) { // check in start_cwd path_full(ted->start_cwd, name, out, outsz); @@ -28,7 +28,7 @@ extern "C" { #include "sdl-inc.h" /// Version number -#define TED_VERSION "2.4.1" +#define TED_VERSION "2.4.2" /// Version string #define TED_VERSION_FULL "ted v. " TED_VERSION /// Maximum path size ted handles. |