To: vim-dev@vim.org Subject: Patch 6.1.146 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.146 Problem: MS-Windows: When $HOME is constructed from $HOMEDRIVE and $HOMEPATH, it is not used for storing the _viminfo file. (Normal Diamond) Solution: Set $HOME with the value obtained from $HOMEDRIVE and $HOMEPATH. Files: src/misc1.c *** ../vim61.145/src/misc1.c Sun Jul 28 22:02:42 2002 --- src/misc1.c Sat Aug 3 21:05:06 2002 *************** *** 2806,2812 **** --- 2806,2816 ---- { sprintf((char *)NameBuff, "%s%s", homedrive, homepath); if (NameBuff[0] != NUL) + { var = NameBuff; + /* Also set $HOME, it's needed for _viminfo. */ + vim_setenv((char_u *)"HOME", NameBuff); + } } } #endif *** ../vim61.145/src/version.c Sat Aug 3 14:16:11 2002 --- src/version.c Sat Aug 3 21:21:28 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 146, /**/ -- Momento mori, ergo carpe diem /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///