diff options
-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. |