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 / 7.3 / 7.3.1306 < prev    next >
Encoding:
Internet Message Format  |  2013-07-03  |  3.5 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.1306
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.1306
  11. Problem:    When redrawing the screen during startup the intro message may be
  12.         cleared.
  13. Solution:   Redisplay the intro message when appropriate.
  14. Files:        src/screen.c, src/version.c, src/proto/version.pro
  15.  
  16.  
  17. *** ../vim-7.3.1305/src/screen.c    2013-07-03 13:29:55.000000000 +0200
  18. --- src/screen.c    2013-07-04 22:23:55.000000000 +0200
  19. ***************
  20. *** 389,395 ****
  21.           }
  22.           ret = 4;
  23.       }
  24. -     setcursor();
  25.       }
  26.   
  27.       vim_free(screenline);
  28. --- 389,394 ----
  29. ***************
  30. *** 405,410 ****
  31. --- 404,414 ----
  32.       vim_free(screenline2);
  33.   #endif
  34.   
  35. +     /* Show the intro message when appropriate. */
  36. +     maybe_intro_message();
  37. +     setcursor();
  38.       return ret;
  39.   }
  40.   
  41. ***************
  42. *** 715,727 ****
  43.       showmode();
  44.   
  45.       /* May put up an introductory message when not editing a file */
  46. !     if (!did_intro && bufempty()
  47. !         && curbuf->b_fname == NULL
  48. ! #ifdef FEAT_WINDOWS
  49. !         && firstwin->w_next == NULL
  50. ! #endif
  51. !         && vim_strchr(p_shm, SHM_INTRO) == NULL)
  52. !     intro_message(FALSE);
  53.       did_intro = TRUE;
  54.   
  55.   #ifdef FEAT_GUI
  56. --- 719,726 ----
  57.       showmode();
  58.   
  59.       /* May put up an introductory message when not editing a file */
  60. !     if (!did_intro)
  61. !     maybe_intro_message();
  62.       did_intro = TRUE;
  63.   
  64.   #ifdef FEAT_GUI
  65. *** ../vim-7.3.1305/src/version.c    2013-07-04 21:19:28.000000000 +0200
  66. --- src/version.c    2013-07-04 22:29:42.000000000 +0200
  67. ***************
  68. *** 3777,3782 ****
  69. --- 3779,3799 ----
  70.   static void do_intro_line __ARGS((int row, char_u *mesg, int add_version, int attr));
  71.   
  72.   /*
  73. +  * Show the intro message when not editing a file.
  74. +  */
  75. +     void
  76. + maybe_intro_message()
  77. + {
  78. +     if (bufempty()
  79. +         && curbuf->b_fname == NULL
  80. + #ifdef FEAT_WINDOWS
  81. +         && firstwin->w_next == NULL
  82. + #endif
  83. +         && vim_strchr(p_shm, SHM_INTRO) == NULL)
  84. +     intro_message(FALSE);
  85. + }
  86. + /*
  87.    * Give an introductory message about Vim.
  88.    * Only used when starting Vim on an empty file, without a file name.
  89.    * Or with the ":intro" command (for Sven :-).
  90. *** ../vim-7.3.1305/src/proto/version.pro    2010-08-15 21:57:28.000000000 +0200
  91. --- src/proto/version.pro    2013-07-04 22:19:53.000000000 +0200
  92. ***************
  93. *** 4,9 ****
  94. --- 4,10 ----
  95.   int has_patch __ARGS((int n));
  96.   void ex_version __ARGS((exarg_T *eap));
  97.   void list_version __ARGS((void));
  98. + void maybe_intro_message __ARGS((void));
  99.   void intro_message __ARGS((int colon));
  100.   void ex_intro __ARGS((exarg_T *eap));
  101.   /* vim: set ft=c : */
  102. *** ../vim-7.3.1305/src/version.c    2013-07-04 21:19:28.000000000 +0200
  103. --- src/version.c    2013-07-04 22:29:42.000000000 +0200
  104. ***************
  105. *** 730,731 ****
  106. --- 730,733 ----
  107.   {   /* Add new patch number below this line */
  108. + /**/
  109. +     1306,
  110.   /**/
  111.  
  112. -- 
  113. ROBIN:  The what?
  114. ARTHUR: The Holy Hand Grenade of Antioch.  'Tis one of the sacred relics
  115.         Brother Maynard always carries with him.
  116. ALL:    Yes. Of course.
  117. ARTHUR: (shouting) Bring up the Holy Hand Grenade!
  118.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  119.  
  120.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  121. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  122. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  123.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  124.