diff src/proto/misc1.pro @ 13923:e4d5726e1678 v8.0.1832

patch 8.0.1832: cannot use :unlet for an environment variable commit https://github.com/vim/vim/commit/137374fd6538cf9dee0cb22907728d8fdecb5832 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 13 15:59:50 2018 +0200 patch 8.0.1832: cannot use :unlet for an environment variable Problem: Cannot use :unlet for an environment variable. Solution: Make it work. Use unsetenv() if available. (Ken Takata, closes #2855)
author Christian Brabandt <cb@256bit.org>
date Sun, 13 May 2018 16:00:07 +0200
parents 4dba3e4f3b01
children 1174611ad715
line wrap: on
line diff
--- a/src/proto/misc1.pro
+++ b/src/proto/misc1.pro
@@ -60,6 +60,7 @@ void expand_env(char_u *src, char_u *dst
 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);