Loading ...
Sorry, an error occurred while loading the content.

Re: [bugreport] script written by :mksession modifies options splitbelow splitright

Expand Messages
  • Roland Eggner
    ... Oh indeed … feature and not bug. Sorry for the noise. ... … I did, and forgot that this does not affect already written session files. Thank you for
    Message 1 of 3 , Feb 5, 2013
    • 0 Attachment
      On 2013-02-05 Tuesday at 18:51 +0100 Bram Moolenaar wrote:
      >
      > 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.

      Oh indeed … feature and not bug. Sorry for the noise.
      >
      > You could remove the "options" item from 'sessionoptions', if you like.

      … I did, and forgot that this does not affect already written session files.

      Thank you for explanation.

      --
      Roland Eggner
    Your message has been successfully submitted and would be delivered to recipients shortly.