diff options
author | pommicket <pommicket@gmail.com> | 2023-10-19 11:18:54 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-10-19 11:18:54 -0400 |
commit | 553f01db25db52eea5396b575c66e2a6e77db1ce (patch) | |
tree | 75e7452c311719bbd9f022d8c549052db82ebce3 /ted.c | |
parent | 94c2b5a926cd7273272fb9fe268dd61c50426c59 (diff) |
is_path_separator
Diffstat (limited to 'ted.c')
-rw-r--r-- | ted.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -247,7 +247,7 @@ void ted_compute_settings(Ted *ted, const char *path, Language language, Setting editorconfig[i+1] = 0; ted_cfg[i] = path[i]; ted_cfg[i+1] = 0; - if (path[i] == 0 || strchr(ALL_PATH_SEPARATORS, path[i])) { + if (path[i] == 0 || is_path_separator(path[i])) { if (path[i] == 0) { // for the case where `path` is a directory strbuf_catf(editorconfig, "%c", PATH_SEPARATOR); strbuf_catf(ted_cfg, "%c", PATH_SEPARATOR); |