diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-03-27 11:10:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 11:10:13 +0100 |
commit | c4e19308513508dca0d5f2c7786cb1e2d90f7d0b (patch) | |
tree | 1a7090b63ef9ab0008c5623fc1ec89bf8f67e1e1 /src | |
parent | 63f7b1f31eae9e2710bd973f05a575f26e0208d9 (diff) | |
parent | 21360523cd3da8d203c3ad80b8ea2ad56b2d9703 (diff) | |
download | rneovim-c4e19308513508dca0d5f2c7786cb1e2d90f7d0b.tar.gz rneovim-c4e19308513508dca0d5f2c7786cb1e2d90f7d0b.tar.bz2 rneovim-c4e19308513508dca0d5f2c7786cb1e2d90f7d0b.zip |
Merge pull request #28025 from luukvbaal/introfloat
fix(intro): still show intro message with floating window
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/version.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/version.c b/src/nvim/version.c index d7f94fadae..14e2491d18 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -34,6 +34,7 @@ #include "nvim/strings.h" #include "nvim/ui.h" #include "nvim/version.h" +#include "nvim/window.h" // for ":version", ":intro", and "nvim --version" #ifndef NVIM_VERSION_MEDIUM @@ -2714,9 +2715,9 @@ void list_version(void) /// Whether it still is not too late to show an intro message bool may_show_intro(void) { - return (buf_is_empty(curbuf) - && (curbuf->b_fname == NULL) - && (firstwin->w_next == NULL) + return (buf_is_empty(firstwin->w_buffer) + && (firstwin->w_buffer->b_fname == NULL) + && one_window(firstwin) && (vim_strchr(p_shm, SHM_INTRO) == NULL)); } |