Explorar o código

Avoid taking over a modified buffer

valleydali %!s(int64=7) %!d(string=hai) anos
pai
achega
54483c88e5
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      autoload/startify.vim

+ 4 - 0
autoload/startify.vim

@@ -47,6 +47,10 @@ function! startify#insane_in_the_membrane() abort
     return
   endif
 
+  if &modified
+    return
+  endif
+
   if !empty(v:servername) && exists('g:startify_skiplist_server')
     for servname in g:startify_skiplist_server
       if servname == v:servername