diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/nvim/drawscreen.c | 2 | ||||
| -rw-r--r-- | src/nvim/version.c | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/drawscreen.c b/src/nvim/drawscreen.c index 1fb42af786..a01cbe6223 100644 --- a/src/nvim/drawscreen.c +++ b/src/nvim/drawscreen.c @@ -424,7 +424,7 @@ int update_screen(void) static bool still_may_intro = true; if (still_may_intro) { if (!may_show_intro()) { - must_redraw = UPD_NOT_VALID; + redraw_later(firstwin, UPD_NOT_VALID); still_may_intro = false; } } diff --git a/src/nvim/version.c b/src/nvim/version.c index 14e2491d18..5443371ba7 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -2715,9 +2715,11 @@ void list_version(void) /// Whether it still is not too late to show an intro message bool may_show_intro(void) { - return (buf_is_empty(firstwin->w_buffer) - && (firstwin->w_buffer->b_fname == NULL) - && one_window(firstwin) + return (buf_is_empty(curbuf) + && (curbuf->b_fname == NULL) + && (curbuf->handle == 1) + && (curwin->handle == LOWEST_WIN_ID) + && one_window(curwin) && (vim_strchr(p_shm, SHM_INTRO) == NULL)); } |