I noticed that the Vim intro message is still shown when
a session is restored where we end up on a blank tab:

1. vim --clean
2. :tabnew
3. :mks
4. :q
5. vim -S Session.vim
6. " see intro message here

IMHO, a session should get us as close as possible to where we
were when we last left Vim, so no intro message.

The patch below does the work, I believe.  I've had a hard
time testing this, so I welcome suggestions in that area:

diff --git a/src/version.c b/src/version.c
index 118a867e5..937daa496 100644
--- a/src/version.c
+++ b/src/version.c
@@ -2717,7 +2717,11 @@ maybe_intro_message(void)
     if (BUFEMPTY()
            && curbuf->b_fname == NULL
            && firstwin->w_next == NULL
-           && vim_strchr(p_shm, SHM_INTRO) == NULL)
+           && vim_strchr(p_shm, SHM_INTRO) == NULL
+#ifdef FEAT_SESSION
+           && STRLEN(get_vim_var_str(VV_THIS_SESSION)) == 0
+#endif
+       )
        intro_message(FALSE);
 }

Best,
Jason Franklin

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui