Re: [bugreport] script written by :mksession modifies options splitbelow splitright
- On 2013-02-05 Tuesday at 18:51 +0100 Bram Moolenaar wrote:
>Oh indeed … feature and not bug. Sorry for the noise.
> Roland Eggner wrote:
> > Session script written by :mksession modifies options splitbelow splitright and
> > does not restore original settings.
> > How to reproduce
> > ----------------
> > printf '%s\n' 'first line' 'second line' > example.txt
> > LC_ALL=C vim -u NONE + -c 'mksession MySession.vim|q' example.txt
> > LC_ALL=C vim -u NONE -c 'set splitbelow splitright|so MySession.vim'
> When you create the session file the options are off, thus when you load
> the session they are also off. That is expected.
>… I did, and forgot that this does not affect already written session files.
> You could remove the "options" item from 'sessionoptions', if you like.
Thank you for explanation.