buffer: don't rely on curbuf in BUFEMPTY

This commit is contained in:
Thomas Vigouroux
2020-09-16 22:57:34 +02:00
parent df33f30e88
commit 55a2c513aa
13 changed files with 18 additions and 20 deletions

View File

@@ -2190,7 +2190,7 @@ void list_version(void)
/// Show the intro message when not editing a file.
void maybe_intro_message(void)
{
if (BUFEMPTY()
if (BUFEMPTY(curbuf)
&& (curbuf->b_fname == NULL)
&& (firstwin->w_next == NULL)
&& (vim_strchr(p_shm, SHM_INTRO) == NULL)) {