Karsten Hopp d1f2b0
To: vim_dev@googlegroups.com
Karsten Hopp d1f2b0
Subject: Patch 7.3.1306
Karsten Hopp d1f2b0
Fcc: outbox
Karsten Hopp d1f2b0
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp d1f2b0
Mime-Version: 1.0
Karsten Hopp d1f2b0
Content-Type: text/plain; charset=UTF-8
Karsten Hopp d1f2b0
Content-Transfer-Encoding: 8bit
Karsten Hopp d1f2b0
------------
Karsten Hopp d1f2b0
Karsten Hopp d1f2b0
Patch 7.3.1306
Karsten Hopp d1f2b0
Problem:    When redrawing the screen during startup the intro message may be
Karsten Hopp d1f2b0
	    cleared.
Karsten Hopp d1f2b0
Solution:   Redisplay the intro message when appropriate.
Karsten Hopp d1f2b0
Files:	    src/screen.c, src/version.c, src/proto/version.pro
Karsten Hopp d1f2b0
Karsten Hopp d1f2b0
Karsten Hopp d1f2b0
*** ../vim-7.3.1305/src/screen.c	2013-07-03 13:29:55.000000000 +0200
Karsten Hopp d1f2b0
--- src/screen.c	2013-07-04 22:23:55.000000000 +0200
Karsten Hopp d1f2b0
***************
Karsten Hopp d1f2b0
*** 389,395 ****
Karsten Hopp d1f2b0
  	    }
Karsten Hopp d1f2b0
  	    ret = 4;
Karsten Hopp d1f2b0
  	}
Karsten Hopp d1f2b0
- 	setcursor();
Karsten Hopp d1f2b0
      }
Karsten Hopp d1f2b0
  
Karsten Hopp d1f2b0
      vim_free(screenline);
Karsten Hopp d1f2b0
--- 389,394 ----
Karsten Hopp d1f2b0
***************
Karsten Hopp d1f2b0
*** 405,410 ****
Karsten Hopp d1f2b0
--- 404,414 ----
Karsten Hopp d1f2b0
  	vim_free(screenline2);
Karsten Hopp d1f2b0
  #endif
Karsten Hopp d1f2b0
  
Karsten Hopp d1f2b0
+     /* Show the intro message when appropriate. */
Karsten Hopp d1f2b0
+     maybe_intro_message();
Karsten Hopp d1f2b0
+ 
Karsten Hopp d1f2b0
+     setcursor();
Karsten Hopp d1f2b0
+ 
Karsten Hopp d1f2b0
      return ret;
Karsten Hopp d1f2b0
  }
Karsten Hopp d1f2b0
  
Karsten Hopp d1f2b0
***************
Karsten Hopp d1f2b0
*** 715,727 ****
Karsten Hopp d1f2b0
  	showmode();
Karsten Hopp d1f2b0
  
Karsten Hopp d1f2b0
      /* May put up an introductory message when not editing a file */
Karsten Hopp d1f2b0
!     if (!did_intro && bufempty()
Karsten Hopp d1f2b0
! 	    && curbuf->b_fname == NULL
Karsten Hopp d1f2b0
! #ifdef FEAT_WINDOWS
Karsten Hopp d1f2b0
! 	    && firstwin->w_next == NULL
Karsten Hopp d1f2b0
! #endif
Karsten Hopp d1f2b0
! 	    && vim_strchr(p_shm, SHM_INTRO) == NULL)
Karsten Hopp d1f2b0
! 	intro_message(FALSE);
Karsten Hopp d1f2b0
      did_intro = TRUE;
Karsten Hopp d1f2b0
  
Karsten Hopp d1f2b0
  #ifdef FEAT_GUI
Karsten Hopp d1f2b0
--- 719,726 ----
Karsten Hopp d1f2b0
  	showmode();
Karsten Hopp d1f2b0
  
Karsten Hopp d1f2b0
      /* May put up an introductory message when not editing a file */
Karsten Hopp d1f2b0
!     if (!did_intro)
Karsten Hopp d1f2b0
! 	maybe_intro_message();
Karsten Hopp d1f2b0
      did_intro = TRUE;
Karsten Hopp d1f2b0
  
Karsten Hopp d1f2b0
  #ifdef FEAT_GUI
Karsten Hopp d1f2b0
*** ../vim-7.3.1305/src/version.c	2013-07-04 21:19:28.000000000 +0200
Karsten Hopp d1f2b0
--- src/version.c	2013-07-04 22:29:42.000000000 +0200
Karsten Hopp d1f2b0
***************
Karsten Hopp d1f2b0
*** 3777,3782 ****
Karsten Hopp d1f2b0
--- 3779,3799 ----
Karsten Hopp d1f2b0
  static void do_intro_line __ARGS((int row, char_u *mesg, int add_version, int attr));
Karsten Hopp d1f2b0
  
Karsten Hopp d1f2b0
  /*
Karsten Hopp d1f2b0
+  * Show the intro message when not editing a file.
Karsten Hopp d1f2b0
+  */
Karsten Hopp d1f2b0
+     void
Karsten Hopp d1f2b0
+ maybe_intro_message()
Karsten Hopp d1f2b0
+ {
Karsten Hopp d1f2b0
+     if (bufempty()
Karsten Hopp d1f2b0
+ 	    && curbuf->b_fname == NULL
Karsten Hopp d1f2b0
+ #ifdef FEAT_WINDOWS
Karsten Hopp d1f2b0
+ 	    && firstwin->w_next == NULL
Karsten Hopp d1f2b0
+ #endif
Karsten Hopp d1f2b0
+ 	    && vim_strchr(p_shm, SHM_INTRO) == NULL)
Karsten Hopp d1f2b0
+ 	intro_message(FALSE);
Karsten Hopp d1f2b0
+ }
Karsten Hopp d1f2b0
+ 
Karsten Hopp d1f2b0
+ /*
Karsten Hopp d1f2b0
   * Give an introductory message about Vim.
Karsten Hopp d1f2b0
   * Only used when starting Vim on an empty file, without a file name.
Karsten Hopp d1f2b0
   * Or with the ":intro" command (for Sven :-).
Karsten Hopp d1f2b0
*** ../vim-7.3.1305/src/proto/version.pro	2010-08-15 21:57:28.000000000 +0200
Karsten Hopp d1f2b0
--- src/proto/version.pro	2013-07-04 22:19:53.000000000 +0200
Karsten Hopp d1f2b0
***************
Karsten Hopp d1f2b0
*** 4,9 ****
Karsten Hopp d1f2b0
--- 4,10 ----
Karsten Hopp d1f2b0
  int has_patch __ARGS((int n));
Karsten Hopp d1f2b0
  void ex_version __ARGS((exarg_T *eap));
Karsten Hopp d1f2b0
  void list_version __ARGS((void));
Karsten Hopp d1f2b0
+ void maybe_intro_message __ARGS((void));
Karsten Hopp d1f2b0
  void intro_message __ARGS((int colon));
Karsten Hopp d1f2b0
  void ex_intro __ARGS((exarg_T *eap));
Karsten Hopp d1f2b0
  /* vim: set ft=c : */
Karsten Hopp d1f2b0
*** ../vim-7.3.1305/src/version.c	2013-07-04 21:19:28.000000000 +0200
Karsten Hopp d1f2b0
--- src/version.c	2013-07-04 22:29:42.000000000 +0200
Karsten Hopp d1f2b0
***************
Karsten Hopp d1f2b0
*** 730,731 ****
Karsten Hopp d1f2b0
--- 730,733 ----
Karsten Hopp d1f2b0
  {   /* Add new patch number below this line */
Karsten Hopp d1f2b0
+ /**/
Karsten Hopp d1f2b0
+     1306,
Karsten Hopp d1f2b0
  /**/
Karsten Hopp d1f2b0
Karsten Hopp d1f2b0
-- 
Karsten Hopp d1f2b0
ROBIN:  The what?
Karsten Hopp d1f2b0
ARTHUR: The Holy Hand Grenade of Antioch.  'Tis one of the sacred relics
Karsten Hopp d1f2b0
        Brother Maynard always carries with him.
Karsten Hopp d1f2b0
ALL:    Yes. Of course.
Karsten Hopp d1f2b0
ARTHUR: (shouting) Bring up the Holy Hand Grenade!
Karsten Hopp d1f2b0
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp d1f2b0
Karsten Hopp d1f2b0
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp d1f2b0
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp d1f2b0
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp d1f2b0
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///