summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-07-04 22:31:03 +0200
committerBram Moolenaar <Bram@vim.org>2013-07-04 22:31:03 +0200
commit249f0dda510d4dc3b68ad3450d3b8f17eafa40b3 (patch)
tree36a51109efa69ad4abcc102a4b64c49b02a00d2d /src/screen.c
parent61214040e91dc4635170a0c985a0ef2f5ffa2c55 (diff)
downloadvim-git-249f0dda510d4dc3b68ad3450d3b8f17eafa40b3.tar.gz
updated for version 7.3.1306v7.3.1306
Problem: When redrawing the screen during startup the intro message may be cleared. Solution: Redisplay the intro message when appropriate.
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/screen.c b/src/screen.c
index d68a84b99..e5636adbf 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -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