summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ted.c b/ted.c
index 83e542f..969b416 100644
--- a/ted.c
+++ b/ted.c
@@ -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);