Skip to content

Commit

Permalink
Avoid mandatory persistence of Vim size.
Browse files Browse the repository at this point in the history
This does not affect the plugin's operation; rather, it is the author's preference. Therefore, honor the setting when it's in 'sessionoptions', but don't force it.
  • Loading branch information
inkarkat committed Dec 4, 2012
1 parent ca2e72f commit 1707199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/xolox/session.vim
Expand Up @@ -103,7 +103,7 @@ function! xolox#session#save_state(commands) " {{{2
" which makes them slower to generate and evaluate. It can also be a bit
" buggy, e.g. it breaks Ctrl-S when :runtime mswin.vim has been used. The
" value of &sessionoptions is changed temporarily to avoid these issues.
set ssop-=options ssop+=resize
set ssop-=options
execute 'mksession' fnameescape(tempfile)
let lines = readfile(tempfile)
if lines[-1] == '" vim: set ft=vim :'
Expand Down

3 comments on commit 1707199

@elemel21
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And now, how can I have this setting back? Where do I set saving session windows size?

@inkarkat
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:set ssop+=resize; put this into your ~/.vimrc.

@elemel21
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, it worked

Please sign in to comment.