home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / old / 5.6.044 < prev    next >
Encoding:
Internet Message Format  |  2000-03-30  |  1.8 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 5.6.044 (extra)
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.6.044 (extra)
  8. Problem:    MS-DOS and Windows: The line that dosinst.exe appends to
  9.             autoexec.bat to set PATH is wrong when Vim is in a directory with
  10.             an embedded space.
  11. Solution:   Use double quotes for the value when there is an embedded space.
  12. Files:      src/dosinst.c
  13.  
  14.  
  15. *** ../vim-5.6.43/src/dosinst.c    Fri Jan 14 22:38:22 2000
  16. --- src/dosinst.c    Fri Mar 31 10:53:49 2000
  17. ***************
  18. *** 716,722 ****
  19.       exe = get_choice(exe_choices, TABLE_SIZE(exe_choices));
  20.       switch (exe)
  21.       {
  22. !         case 1: append_autoexec("set PATH=%%PATH%%;%s\n", vimdir);
  23.               need_vimvar = 0;
  24.               break;
  25.   
  26. --- 716,724 ----
  27.       exe = get_choice(exe_choices, TABLE_SIZE(exe_choices));
  28.       switch (exe)
  29.       {
  30. !         case 1: /* Must use double quotes for when the vimdir or %PATH%
  31. !              * contains a space. */
  32. !             append_autoexec("set PATH=\"%%PATH%%;%s\"\n", vimdir);
  33.               need_vimvar = 0;
  34.               break;
  35.   
  36. ***************
  37. *** 742,747 ****
  38. --- 744,752 ----
  39.       else
  40.       {
  41.           vimrc[vimdirend - 1] = NUL;
  42. +         /* Don't use double quotes for the value here, also when vimrc
  43. +          * contains a space.  The quotes would be included in the value
  44. +          * for MSDOS. */
  45.           append_autoexec("set VIM=%s\n", vimrc);
  46.       }
  47.       }
  48. *** ../vim-5.6.43/src/version.c    Thu Mar 30 18:39:21 2000
  49. --- src/version.c    Fri Mar 31 10:25:59 2000
  50. ***************
  51. *** 420,421 ****
  52. --- 420,423 ----
  53.   {   /* Add new patch number below this line */
  54. + /**/
  55. +     44,
  56.   /**/
  57.  
  58. -- 
  59. Why isn't there mouse-flavored cat food?
  60.  
  61. /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\
  62. \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/
  63.