mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
buffer: don't rely on curbuf in BUFEMPTY
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user