File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
" Vim script
2
2
" Author: Peter Odding
3
- " Last Change: April 17 , 2013
3
+ " Last Change: April 18 , 2013
4
4
" URL: http://peterodding.com/code/vim/session/
5
5
6
- let g: xolox #session#version = ' 1.5.1 '
6
+ let g: xolox #session#version = ' 1.5.2 '
7
7
8
8
" Public API for session persistence. {{{1
9
9
@@ -137,6 +137,11 @@ function! s:state_filter(line)
137
137
" given, thereby breaking the session that the user was expecting to
138
138
" get... I consider this to be a bug in :mksession, but anyway :-).
139
139
return ' " ' . a: line
140
+ elseif a: line = ~ ' ^\(argglobal\|\dargu\)$'
141
+ " Because we disabled the :args command above we cause a potential error
142
+ " when :mksession adds corresponding :argglobal and/or :argument commands
143
+ " to the session script.
144
+ return ' " ' . a: line
140
145
else
141
146
return a: line
142
147
endif
You can’t perform that action at this time.
0 commit comments