env_iter: Learn delim parameter.

This commit is contained in:
Justin M. Keyes
2017-05-15 03:54:52 +02:00
parent 5bda5c5bf2
commit cc5a42a774
4 changed files with 24 additions and 20 deletions

View File

@@ -2265,7 +2265,7 @@ void path_guess_exepath(const char *argv0, char *buf, size_t bufsize)
do {
const char *dir;
size_t dir_len;
iter = vim_colon_env_iter(path, iter, &dir, &dir_len);
iter = vim_env_iter(ENV_SEPCHAR, path, iter, &dir, &dir_len);
if (dir == NULL || dir_len == 0) {
break;
}