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.049 < prev    next >
Encoding:
Internet Message Format  |  2001-10-30  |  4.5 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.049
  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.049
  11. Problem:    When using evim the intro screen is misleading. (Adrian Nagle)
  12. Solution:   Mention whether 'insertmode' is set and the menus to be used.
  13. Files:        runtime/menu.vim, src/version.c
  14.  
  15.  
  16. *** ../vim60.48/runtime/menu.vim    Tue Oct 30 21:41:46 2001
  17. --- runtime/menu.vim    Wed Oct 31 16:47:20 2001
  18. ***************
  19. *** 54,64 ****
  20.   amenu 9999.10 &Help.&Overview<Tab><F1>        :help<CR>
  21.   amenu 9999.20 &Help.&User\ Manual        :help usr_toc<CR>
  22.   amenu 9999.30 &Help.&How-to\ links        :help how-to<CR>
  23. ! amenu 9999.40 &Help.&GUI            :help gui<CR>
  24.   amenu 9999.50 &Help.&Credits            :help credits<CR>
  25. ! amenu 9999.60 &Help.Co&pying            :help uganda<CR>
  26. ! amenu <silent> 9999.70 &Help.&Find\.\.\.    :call <SID>Helpfind()<CR>
  27. ! amenu 9999.75 &Help.-sep-            <nul>
  28.   amenu 9999.80 &Help.&Version            :version<CR>
  29.   amenu 9999.90 &Help.&About            :intro<CR>
  30.   
  31. --- 54,65 ----
  32.   amenu 9999.10 &Help.&Overview<Tab><F1>        :help<CR>
  33.   amenu 9999.20 &Help.&User\ Manual        :help usr_toc<CR>
  34.   amenu 9999.30 &Help.&How-to\ links        :help how-to<CR>
  35. ! amenu <silent> 9999.40 &Help.&Find\.\.\.    :call <SID>Helpfind()<CR>
  36. ! amenu 9999.45 &Help.-sep1-            <nul>
  37.   amenu 9999.50 &Help.&Credits            :help credits<CR>
  38. ! amenu 9999.60 &Help.Co&pying            :help copying<CR>
  39. ! amenu 9999.70 &Help.O&rphans            :help iccf<CR>
  40. ! amenu 9999.75 &Help.-sep2-            <nul>
  41.   amenu 9999.80 &Help.&Version            :version<CR>
  42.   amenu 9999.90 &Help.&About            :intro<CR>
  43.   
  44. ***************
  45. *** 171,176 ****
  46. --- 189,195 ----
  47.   amenu 20.440.130.70 &Edit.&Global\ Settings.&Virtual\ Edit.Block\ and\ Insert :set ve=block,insert<CR>
  48.   amenu 20.440.130.80 &Edit.&Global\ Settings.&Virtual\ Edit.Always :set ve=all<CR>
  49.   amenu 20.440.140 &Edit.&Global\ Settings.Toggle\ Insert\ &Mode<Tab>:set\ im!    :set im!<CR>
  50. + amenu 20.440.145 &Edit.&Global\ Settings.Toggle\ Vi\ C&ompatible<Tab>:set\ cp!    :set cp!<CR>
  51.   amenu <silent> 20.440.150 &Edit.&Global\ Settings.Search\ &Path\.\.\.  :call <SID>SearchP()<CR>
  52.   amenu <silent> 20.440.160 &Edit.&Global\ Settings.Ta&g\ Files\.\.\.  :call <SID>TagFiles()<CR>
  53.   "
  54. *** ../vim60.48/src/version.c    Wed Oct 31 15:20:56 2001
  55. --- src/version.c    Wed Oct 31 17:43:13 2001
  56. ***************
  57. *** 608,609 ****
  58. --- 608,611 ----
  59.   {   /* Add new patch number below this line */
  60. + /**/
  61. +     49,
  62.   /**/
  63. ***************
  64. *** 1025,1030 ****
  65. --- 1027,1033 ----
  66.       int        i;
  67.       int        row;
  68.       int        blanklines;
  69. +     char_u    *p;
  70.       static char    *(lines[]) =
  71.       {
  72.       N_("VIM - Vi IMproved"),
  73. ***************
  74. *** 1045,1050 ****
  75. --- 1048,1075 ----
  76.       N_("type  :set nocp<Enter>        for Vim defaults"),
  77.       N_("type  :help cp-default<Enter> for info on this"),
  78.       };
  79. + #ifdef FEAT_GUI
  80. +     static char    *(gui_lines[]) =
  81. +     {
  82. +     NULL,
  83. +     NULL,
  84. +     NULL,
  85. +     NULL,
  86. +     NULL,
  87. +     NULL,
  88. +     NULL,
  89. +     N_("menu  Help->Orphans           for information    "),
  90. +     NULL,
  91. +     N_("Running modeless, typed text is inserted"),
  92. +     N_("menu  Edit->Global Settings->Toggle Insert Mode  "),
  93. +     N_("                              for two modes      "),
  94. +     NULL,
  95. +     NULL,
  96. +     NULL,
  97. +     N_("menu  Edit->Global Settings->Toggle Vi Compatible"),
  98. +     N_("                              for Vim defaults   "),
  99. +     };
  100. + #endif
  101.   
  102.       /* blanklines = screen height - # message lines */
  103.       blanklines = (int)Rows - ((sizeof(lines) / sizeof(char *)) - 1);
  104. ***************
  105. *** 1069,1082 ****
  106.       {
  107.       for (i = 0; i < (int)(sizeof(lines) / sizeof(char *)); ++i)
  108.       {
  109. !         if (lines[i] == NULL)
  110.           {
  111.           if (!p_cp)
  112.               break;
  113.           continue;
  114.           }
  115. !         if (*lines[i] != NUL)
  116. !         do_intro_line(row, (char_u *)_(lines[i]), i == 2, 0);
  117.           ++row;
  118.       }
  119.   #if defined(WIN3264) && !defined(FEAT_GUI_W32)
  120. --- 1094,1112 ----
  121.       {
  122.       for (i = 0; i < (int)(sizeof(lines) / sizeof(char *)); ++i)
  123.       {
  124. !         p = lines[i];
  125. ! #ifdef FEAT_GUI
  126. !         if (p_im && gui.in_use && gui_lines[i] != NULL)
  127. !         p = gui_lines[i];
  128. ! #endif
  129. !         if (p == NULL)
  130.           {
  131.           if (!p_cp)
  132.               break;
  133.           continue;
  134.           }
  135. !         if (*p != NUL)
  136. !         do_intro_line(row, (char_u *)_(p), i == 2, 0);
  137.           ++row;
  138.       }
  139.   #if defined(WIN3264) && !defined(FEAT_GUI_W32)
  140.  
  141. -- 
  142. Living on Earth includes an annual free trip around the Sun.
  143.  
  144.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  145. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  146.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  147.