diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-03-14 20:00:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-14 20:00:07 +0100 |
commit | 4de4f13eb35e40799198689a5ae0bc534b4e38a8 (patch) | |
tree | 6327adb3dea606ba872755c9e9ede338729c1034 /src/nvim/version.c | |
parent | a6b6d036b19a548e3f2a199c6927ac7495c02ea1 (diff) | |
parent | 0570a19c8a84debcdf2bc73f4c5f2d7d9de3ead2 (diff) | |
download | rneovim-4de4f13eb35e40799198689a5ae0bc534b4e38a8.tar.gz rneovim-4de4f13eb35e40799198689a5ae0bc534b4e38a8.tar.bz2 rneovim-4de4f13eb35e40799198689a5ae0bc534b4e38a8.zip |
Merge pull request #27852 from bfredl/persistent_intro
fix(intro): make intro explicitly stateful
Diffstat (limited to 'src/nvim/version.c')
-rw-r--r-- | src/nvim/version.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/nvim/version.c b/src/nvim/version.c index 038c9701bf..ff6f7835b2 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -2710,15 +2710,13 @@ void list_version(void) : "\nRun \":verbose version\" for more info")); } -/// Show the intro message when not editing a file. -void maybe_intro_message(void) +/// Whether it still is not too late to show an intro message +bool may_show_intro(void) { - if (buf_is_empty(curbuf) - && (curbuf->b_fname == NULL) - && (firstwin->w_next == NULL) - && (vim_strchr(p_shm, SHM_INTRO) == NULL)) { - intro_message(false); - } + return (buf_is_empty(curbuf) + && (curbuf->b_fname == NULL) + && (firstwin->w_next == NULL) + && (vim_strchr(p_shm, SHM_INTRO) == NULL)); } /// Give an introductory message about Vim. |