]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.1306 v7.3.1306
authorBram Moolenaar <Bram@vim.org>
Thu, 4 Jul 2013 20:31:03 +0000 (22:31 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 4 Jul 2013 20:31:03 +0000 (22:31 +0200)
Problem:    When redrawing the screen during startup the intro message may be
            cleared.
Solution:   Redisplay the intro message when appropriate.

src/proto/version.pro
src/screen.c
src/version.c

index 3f371f9b88df5d04993711e75c39204f3734dbf7..e6fb78f069593818e9c65706c8856e4b93ec4055 100644 (file)
@@ -4,6 +4,7 @@ int highest_patch __ARGS((void));
 int has_patch __ARGS((int n));
 void ex_version __ARGS((exarg_T *eap));
 void list_version __ARGS((void));
+void maybe_intro_message __ARGS((void));
 void intro_message __ARGS((int colon));
 void ex_intro __ARGS((exarg_T *eap));
 /* vim: set ft=c : */
index d68a84b990f37a0749d8acd0bd3782f4fe4db631..e5636adbfb978000eef397a41aa9416ef4752cfb 100644 (file)
@@ -389,7 +389,6 @@ redraw_asap(type)
            }
            ret = 4;
        }
-       setcursor();
     }
 
     vim_free(screenline);
@@ -405,6 +404,11 @@ redraw_asap(type)
        vim_free(screenline2);
 #endif
 
+    /* Show the intro message when appropriate. */
+    maybe_intro_message();
+
+    setcursor();
+
     return ret;
 }
 
@@ -715,13 +719,8 @@ update_screen(type)
        showmode();
 
     /* May put up an introductory message when not editing a file */
-    if (!did_intro && bufempty()
-           && curbuf->b_fname == NULL
-#ifdef FEAT_WINDOWS
-           && firstwin->w_next == NULL
-#endif
-           && vim_strchr(p_shm, SHM_INTRO) == NULL)
-       intro_message(FALSE);
+    if (!did_intro)
+       maybe_intro_message();
     did_intro = TRUE;
 
 #ifdef FEAT_GUI
index 11225060651cd5365fe50dfd932debd675a58e37..182ca0130de7b1d0cebfae666416628089ce802c 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1306,
 /**/
     1305,
 /**/
@@ -3776,6 +3778,21 @@ version_msg(s)
 
 static void do_intro_line __ARGS((int row, char_u *mesg, int add_version, int attr));
 
+/*
+ * Show the intro message when not editing a file.
+ */
+    void
+maybe_intro_message()
+{
+    if (bufempty()
+           && curbuf->b_fname == NULL
+#ifdef FEAT_WINDOWS
+           && firstwin->w_next == NULL
+#endif
+           && vim_strchr(p_shm, SHM_INTRO) == NULL)
+       intro_message(FALSE);
+}
+
 /*
  * Give an introductory message about Vim.
  * Only used when starting Vim on an empty file, without a file name.