Просмотр исходного кода

Ignore <session>x.vim files in session path

These files can be used to set up additional things for a session and have to
be placed in the same directory as the session file.

See point 10 under `:h :mksession` for more information.

Since they are no real session files, Startify shouldn't list them either.

Closes #179.
Marco Hinz 10 лет назад
Родитель
Сommit
ff4732bb30
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      autoload/startify.vim

+ 1 - 1
autoload/startify.vim

@@ -494,7 +494,7 @@ endfunction
 
 " Function: s:show_sessions {{{1
 function! s:show_sessions() abort
-  let sfiles = split(globpath(s:session_dir, '*'), '\n')
+  let sfiles = filter(split(globpath(s:session_dir, '*'), '\n'), 'v:val !~# "x\.vim$"')
   if empty(sfiles)
     if exists('s:last_message')
       unlet s:last_message