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 / 6.0.024 < prev    next >
Encoding:
Internet Message Format  |  2001-10-23  |  1.3 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.024
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.0.024
  11. Problem:    Using "CTRL-V u 9900" in Insert mode may cause a crash. (Noah
  12.         Levitt)
  13. Solution:   Don't insert a NUL byte in the text, use a newline.
  14. Files:        src/misc1.c
  15.  
  16.  
  17. *** ../vim60.23/src/misc1.c    Wed Sep 26 16:19:00 2001
  18. --- src/misc1.c    Wed Oct 24 13:15:20 2001
  19. ***************
  20. *** 1536,1541 ****
  21. --- 1536,1547 ----
  22.       int        n;
  23.   
  24.       n = (*mb_char2bytes)(c, buf);
  25. +     /* When "c" is 0x100, 0x200, etc. we don't want to insert a NUL byte.
  26. +      * Happens for CTRL-Vu9900. */
  27. +     if (buf[0] == 0)
  28. +     buf[0] = '\n';
  29.       ins_char_bytes(buf, n);
  30.   }
  31.   
  32. *** ../vim60.23/src/version.c    Tue Oct 23 20:57:50 2001
  33. --- src/version.c    Wed Oct 24 13:19:45 2001
  34. ***************
  35. *** 608,609 ****
  36. --- 608,611 ----
  37.   {   /* Add new patch number below this line */
  38. + /**/
  39. +     24,
  40.   /**/
  41.  
  42. -- 
  43. Women are probably the main cause of free software starvation.
  44.  
  45.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  46. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  47.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  48.