From 553f01db25db52eea5396b575c66e2a6e77db1ce Mon Sep 17 00:00:00 2001 From: pommicket Date: Thu, 19 Oct 2023 11:18:54 -0400 Subject: is_path_separator --- ted.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ted.c') 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); -- cgit v1.2.3