diff options
| author | Björn Linse <bjorn.linse@gmail.com> | 2021-07-09 10:15:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-09 10:15:18 +0200 |
| commit | 1c416892879de6b78038f2cc2f1487eff46abb60 (patch) | |
| tree | 3895521bc907b7a0617940c21272ac7ee9f052da /src/nvim/version.c | |
| parent | 27118c6eb3351b0df96e2514e8f3806108e50cf7 (diff) | |
| parent | 9c93e6461c8c6ec2e8d3e73f506389ac7086d531 (diff) | |
| download | rneovim-1c416892879de6b78038f2cc2f1487eff46abb60.tar.gz rneovim-1c416892879de6b78038f2cc2f1487eff46abb60.tar.bz2 rneovim-1c416892879de6b78038f2cc2f1487eff46abb60.zip | |
Merge pull request #12971 from vigoux/decurbuf
Decrease reliance on curbuf in BUFEMPTY and `undo.c`
Diffstat (limited to 'src/nvim/version.c')
| -rw-r--r-- | src/nvim/version.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/version.c b/src/nvim/version.c index f3a30630f8..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() + if (buf_is_empty(curbuf) && (curbuf->b_fname == NULL) && (firstwin->w_next == NULL) && (vim_strchr(p_shm, SHM_INTRO) == NULL)) { |