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.5.061 < prev    next >
Encoding:
Internet Message Format  |  1999-12-06  |  2.8 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 5.5.061
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.5.061
  8. Problem:    When using "\:" in a modeline, the backslash is included in the
  9.             option value. (Mohsin)
  10. Solution:   Remove one backslash before the ':' in a modeline.
  11. Files:      src/buffer.c, runtime/doc/options.txt
  12.  
  13.  
  14. *** ../vim-5.5.60/src/buffer.c    Sat Dec  4 13:53:42 1999
  15. --- src/buffer.c    Tue Dec  7 12:13:06 1999
  16. ***************
  17. *** 2555,2563 ****
  18.   
  19.           /*
  20.            * Find end of set command: ':' or end of line.
  21.            */
  22. !         for (e = s; (*e != ':' || *(e - 1) == '\\') && *e != NUL; ++e)
  23. !         ;
  24.           if (*e == NUL)
  25.           end = TRUE;
  26.   
  27. --- 2555,2565 ----
  28.   
  29.           /*
  30.            * Find end of set command: ':' or end of line.
  31. +          * Skip over "\:", replacing it with ":".
  32.            */
  33. !         for (e = s; *e != ':' && *e != NUL; ++e)
  34. !         if (e[0] == '\\' && e[1] == ':')
  35. !             STRCPY(e, e + 1);
  36.           if (*e == NUL)
  37.           end = TRUE;
  38.   
  39. *** ../vim-5.5.60/runtime/doc/options.txt    Sat Dec  4 13:46:31 1999
  40. --- runtime/doc/options.txt    Tue Dec  7 12:45:16 1999
  41. ***************
  42. *** 1,4 ****
  43. ! *options.txt*   For Vim version 5.5.  Last change: 1999 Dec 04
  44.   
  45.   
  46.             VIM REFERENCE MANUAL    by Bram Moolenaar
  47. --- 1,4 ----
  48. ! *options.txt*   For Vim version 5.5.  Last change: 1999 Dec 07
  49.   
  50.   
  51.             VIM REFERENCE MANUAL    by Bram Moolenaar
  52. ***************
  53. *** 340,348 ****
  54.   
  55.   If an error is detected the rest of the line is skipped.
  56.   
  57. ! If you want to include a ':' in a set command precede it with a '\'.  No other
  58. ! commands than "set" are supported, for security reasons (somebody might create
  59. ! a Trojan horse text file with modelines).
  60.   
  61.   ==============================================================================
  62.   3. Saving settings                    *save-settings*
  63. --- 340,353 ----
  64.   
  65.   If an error is detected the rest of the line is skipped.
  66.   
  67. ! If you want to include a ':' in a set command precede it with a '\'.  The
  68. ! backslash in front of the ':' will be removed.  Example:
  69. ! >  /* vi:set dir=c\:\tmp: */
  70. ! This sets the 'dir' option to "c:\tmp".  Only a single backslash before the
  71. ! ':' is removed.  Thus to include "\:" you have to specify "\\:".
  72. ! No other commands than "set" are supported, for security reasons (somebody
  73. ! might create a Trojan horse text file with modelines).
  74.   
  75.   ==============================================================================
  76.   3. Saving settings                    *save-settings*
  77. *** ../vim-5.5.60/src/version.c    Tue Dec  7 12:48:06 1999
  78. --- src/version.c    Tue Dec  7 12:45:37 1999
  79. ***************
  80. *** 420,420 ****
  81. --- 420,421 ----
  82.   {   /* Add new patch number below this line */
  83. +     61,
  84.  
  85. -- 
  86. This is an airconditioned room, do not open Windows.
  87.  
  88. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
  89.   \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /
  90.