diff options
author | pommicket <pommicket@gmail.com> | 2023-03-04 18:48:22 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-03-04 18:48:22 -0500 |
commit | 8a13f9fa37b5401c836e0ce8674cee5255512d5e (patch) | |
tree | fce7438f610e0c1c44b35763b756e62c3b5f2dc9 /ted.c | |
parent | a8ecd337a1714653710d69a9fcaea8b354ffded8 (diff) |
new light style
also highlighting of POSIX types
Diffstat (limited to 'ted.c')
-rw-r--r-- | ted.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -268,10 +268,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 (ted->search_start_cwd && fs_file_exists(name)) { + if (ted->search_start_cwd) { // check in start_cwd path_full(ted->start_cwd, name, out, outsz); - return true; + if (fs_file_exists(out)) + return true; } if (*ted->local_data_dir) { str_printf(out, outsz, "%s" PATH_SEPARATOR_STR "%s", ted->local_data_dir, name); |