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

+ 1 - 1
plugin/startify.vim

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