Skip to content

Commit 40d08ab

Browse files
committed
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.
1 parent 9607a6b commit 40d08ab

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

autoload/xolox/session.vim

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -244,17 +244,6 @@ function! s:state_filter(line) " {{{3
244244
elseif a:line =~ '^file .\{-}__Tag_List__$'
245245
" Same trick (about the E95) for TagList.
246246
return '" ' . a:line
247-
elseif a:line =~ '^args '
248-
" The :mksession command adds an :args line to the session file, but when
249-
" :args is executed during a session restore it edits the first file it is
250-
" given, thereby breaking the session that the user was expecting to
251-
" get... I consider this to be a bug in :mksession, but anyway :-).
252-
return '" ' . a:line
253-
elseif a:line =~ '^\(argglobal\|\dargu\)$'
254-
" Because we disabled the :args command above we cause a potential error
255-
" when :mksession adds corresponding :argglobal and/or :argument commands
256-
" to the session script.
257-
return '" ' . a:line
258247
elseif a:line =~ "^\\s*silent exe 'bwipe ' \\. s:wipebuf$" || a:line =~ '^unlet! s:wipebuf$'
259248
" Disable Vim's special handling of the initial, empty buffer because it
260249
" breaks restoring of special windows with content generated by a Vim

0 commit comments

Comments
 (0)