aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/version.c
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-09-16 22:57:34 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2021-07-06 19:07:11 +0200
commit55a2c513aafb386c01259fca711b2e0f9b85e359 (patch)
treee9775da5a45147c4706ad468af925e0a53bcdcb3 /src/nvim/version.c
parentdf33f30e8882b2bf692253d63f73fb602a13f888 (diff)
downloadrneovim-55a2c513aafb386c01259fca711b2e0f9b85e359.tar.gz
rneovim-55a2c513aafb386c01259fca711b2e0f9b85e359.tar.bz2
rneovim-55a2c513aafb386c01259fca711b2e0f9b85e359.zip
buffer: don't rely on curbuf in BUFEMPTY
Diffstat (limited to 'src/nvim/version.c')
-rw-r--r--src/nvim/version.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/version.c b/src/nvim/version.c
index f3a30630f8..507352e146 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -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)) {