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.1.222 < prev    next >
Encoding:
Internet Message Format  |  2002-10-12  |  1.9 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.222
  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.1.222 (depends on 6.1.219)
  11. Problem:    Patch 6.1.219 was incomplete.
  12. Solution:   Add the changes for ":amenu".
  13. Files:        src/menu.c
  14.  
  15.  
  16. *** ../vim61.221/src/menu.c    Sun Oct 13 20:08:14 2002
  17. --- src/menu.c    Sun Oct 13 15:43:15 2002
  18. ***************
  19. *** 742,752 ****
  20.   
  21.           if (c)
  22.           {
  23. !             menu->strings[i] = alloc((unsigned)(STRLEN(call_data) + 2));
  24.               if (menu->strings[i] != NULL)
  25.               {
  26.               menu->strings[i][0] = c;
  27.               STRCPY(menu->strings[i] + 1, call_data);
  28.               }
  29.           }
  30.           else
  31. --- 742,761 ----
  32.   
  33.           if (c)
  34.           {
  35. !             menu->strings[i] = alloc((unsigned)(STRLEN(call_data) + 4));
  36.               if (menu->strings[i] != NULL)
  37.               {
  38.               menu->strings[i][0] = c;
  39.               STRCPY(menu->strings[i] + 1, call_data);
  40. +             if (c == Ctrl_C)
  41. +             {
  42. +                 int        len = STRLEN(menu->strings[i]);
  43. +                 /* Append CTRL-\ CTRL-G to obey 'insertmode'. */
  44. +                 menu->strings[i][len] = Ctrl_BSL;
  45. +                 menu->strings[i][len + 1] = Ctrl_G;
  46. +                 menu->strings[i][len + 2] = NUL;
  47. +             }
  48.               }
  49.           }
  50.           else
  51. *** ../vim61.221/src/version.c    Sun Oct 13 20:08:14 2002
  52. --- src/version.c    Sun Oct 13 20:11:31 2002
  53. ***************
  54. *** 608,609 ****
  55. --- 608,611 ----
  56.   {   /* Add new patch number below this line */
  57. + /**/
  58. +     222,
  59.   /**/
  60.  
  61. -- 
  62. hundred-and-one symptoms of being an internet addict:
  63. 213. Your kids start referring to you as "that guy in front of the monitor."
  64.  
  65.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  66. ///          Creator of Vim - Vi IMproved -- http://www.vim.org          \\\
  67. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  68.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  69.