Explorar el Código

Avoid taking over a modified buffer

valleydali hace 7 años
padre
commit
54483c88e5
Se han modificado 1 ficheros con 4 adiciones y 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