aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/version.c
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-11-24 08:48:05 +0100
committerThomas Vigouroux <tomvig38@gmail.com>2021-07-06 19:12:15 +0200
commit7970631fa01e95a41ba4520e030e6208c8fb3648 (patch)
tree60a6a82ffb1f5d0388cb816c68e2a31ead1cda2d /src/nvim/version.c
parent763c852812c8c7e819881a76a237b6f19920f803 (diff)
downloadrneovim-7970631fa01e95a41ba4520e030e6208c8fb3648.tar.gz
rneovim-7970631fa01e95a41ba4520e030e6208c8fb3648.tar.bz2
rneovim-7970631fa01e95a41ba4520e030e6208c8fb3648.zip
buffer: move BUFEMPTY to a function
Diffstat (limited to 'src/nvim/version.c')
-rw-r--r--src/nvim/version.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/version.c b/src/nvim/version.c
index 507352e146..48ef71613e 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -13,6 +13,7 @@
#include "nvim/api/private/helpers.h"
#include "nvim/vim.h"
#include "nvim/ascii.h"
+#include "nvim/buffer.h"
#include "nvim/iconv.h"
#include "nvim/version.h"
#include "nvim/charset.h"
@@ -2190,7 +2191,7 @@ void list_version(void)
/// Show the intro message when not editing a file.
void maybe_intro_message(void)
{
- if (BUFEMPTY(curbuf)
+ if (buf_is_empty(curbuf)
&& (curbuf->b_fname == NULL)
&& (firstwin->w_next == NULL)
&& (vim_strchr(p_shm, SHM_INTRO) == NULL)) {