Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Drop the filtering of :args and :argu from the session file.
I haven't experienced the bug that is hinted at in the comments, and I see the argument list as an essential part of the session information.
  • Loading branch information
inkarkat committed Sep 3, 2013
1 parent 9607a6b commit 40d08ab
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions autoload/xolox/session.vim
Expand Up @@ -244,17 +244,6 @@ function! s:state_filter(line) " {{{3
elseif a:line =~ '^file .\{-}__Tag_List__$'
" Same trick (about the E95) for TagList.
return '" ' . a:line
elseif a:line =~ '^args '
" The :mksession command adds an :args line to the session file, but when
" :args is executed during a session restore it edits the first file it is
" given, thereby breaking the session that the user was expecting to
" get... I consider this to be a bug in :mksession, but anyway :-).
return '" ' . a:line
elseif a:line =~ '^\(argglobal\|\dargu\)$'
" Because we disabled the :args command above we cause a potential error
" when :mksession adds corresponding :argglobal and/or :argument commands
" to the session script.
return '" ' . a:line
elseif a:line =~ "^\\s*silent exe 'bwipe ' \\. s:wipebuf$" || a:line =~ '^unlet! s:wipebuf$'
" Disable Vim's special handling of the initial, empty buffer because it
" breaks restoring of special windows with content generated by a Vim
Expand Down

0 comments on commit 40d08ab

Please sign in to comment.