I'm creating a session with mksession
, and when I restore the session, if the first tab was empty ([No Name]
), it's gone in the restored session. Other empty tabs are restored fine; it seems to only be the first tab that's lost. If there are multiple "leading" empty tabs, it's still only the first one that disappears.
I'm using this with vim -u NONE
so there is zero config and no plugins, but I get the same behavior with my normal config. Affects versions 7.3 and 8.0.52.
I'm using the default sessionoptions
in all cases: blank,buffers,curdir,folds,options,tabpages,winsize
.
Steps to reproduce:
$ vim -u NONE
:tabnew
:e foo.txt
:w
:tabnew
:mksession
:qa
$ vim -u NONE -S Session.vim
The tabline now shows foo.txt | [No Name]
. Expected [No Name] | foo.txt | [No Name]
.
Is this isa known issue? Is there a workaround?