Mercurial > vim
comparison src/ex_docmd.c @ 37:fdf55076c53f
updated for version 7.0022
author | vimboss |
---|---|
date | Sun, 12 Dec 2004 11:33:30 +0000 |
parents | 125e80798a85 |
children | 410fa1a31baf |
comparison
equal
deleted
inserted
replaced
36:125e80798a85 | 37:fdf55076c53f |
---|---|
3956 { | 3956 { |
3957 p += srclen; | 3957 p += srclen; |
3958 continue; | 3958 continue; |
3959 } | 3959 } |
3960 | 3960 |
3961 /* Wildcards won't be expanded below, the replacement is taken | |
3962 * literally. But do expand "~/file", "~user/file" and "$HOME/file". */ | |
3963 if (vim_strchr(repl, '$') != NULL || vim_strchr(repl, '~') != NULL) | |
3964 { | |
3965 char_u *l = repl; | |
3966 | |
3967 repl = expand_env_save(repl); | |
3968 vim_free(l); | |
3969 } | |
3970 | |
3961 /* Need to escape white space et al. with a backslash. Don't do this | 3971 /* Need to escape white space et al. with a backslash. Don't do this |
3962 * for shell commands (may have to use quotes instead). Don't do this | 3972 * for shell commands (may have to use quotes instead). Don't do this |
3963 * for non-unix systems when there is a single argument (spaces don't | 3973 * for non-unix systems when there is a single argument (spaces don't |
3964 * separate arguments then). */ | 3974 * separate arguments then). */ |
3965 if (!eap->usefilter | 3975 if (!eap->usefilter |