Marco Hinz 12 лет назад
Родитель
Сommit
9349ae7bf9
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      plugin/startify.vim

+ 3 - 0
plugin/startify.vim

@@ -169,6 +169,9 @@ function! s:set_mark(type) abort
   " matches[1]: content between brackets
   " matches[2]: path
   let matches = matchlist(getline('.'), '\v\[(.*)\]\s+(.*)')
+  if matches[2] =~ '\V<empty buffer>\|<quit>'
+    return
+  endif
   setlocal modifiable
   if matches[1] =~ 'B\|S\|V'
     let s:nmarked -= 1