diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-05-13 15:59:50 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-05-13 15:59:50 +0200 |
commit | 137374fd6538cf9dee0cb22907728d8fdecb5832 (patch) | |
tree | 300180a61a2e24db7bd4a085f99c710988b4632b /src/proto | |
parent | 8b62e31003693fee4b288e7aea49170f032aeef3 (diff) | |
download | vim-git-137374fd6538cf9dee0cb22907728d8fdecb5832.tar.gz |
patch 8.0.1832: cannot use :unlet for an environment variablev8.0.1832
Problem: Cannot use :unlet for an environment variable.
Solution: Make it work. Use unsetenv() if available. (Ken Takata,
closes #2855)
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/misc1.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/misc1.pro b/src/proto/misc1.pro index 4e299e5f9..4b613e6b1 100644 --- a/src/proto/misc1.pro +++ b/src/proto/misc1.pro @@ -60,6 +60,7 @@ void expand_env(char_u *src, char_u *dst, int dstlen); void expand_env_esc(char_u *srcp, char_u *dst, int dstlen, int esc, int one, char_u *startstr); char_u *vim_getenv(char_u *name, int *mustfree); void vim_setenv(char_u *name, char_u *val); +void vim_unsetenv(char_u *name); char_u *get_env_name(expand_T *xp, int idx); char_u *get_users(expand_T *xp, int idx); int match_user(char_u *name); |