Преглед изворни кода

make [e] and [q] unmarkable

Marco Hinz пре 13 година
родитељ
комит
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[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>'
+    return
+  endif
   setlocal modifiable
   setlocal modifiable
   if matches[1] =~ 'B\|S\|V'
   if matches[1] =~ 'B\|S\|V'
     let s:nmarked -= 1
     let s:nmarked -= 1