Warn for unsaved changes if 'nohidden' and 'modified'

This commit is contained in:
Marco Hinz 2018-04-09 16:42:13 +02:00
parent 0a81f95abf
commit 669d87dcec
No known key found for this signature in database
GPG key ID: 1C980A1B657B4A4F

View file

@ -48,6 +48,11 @@ function! startify#insane_in_the_membrane() abort
return
endif
if !&hidden && &modified
call s:warn('startify: Save your changes first.')
return
endif
if !empty(v:servername) && exists('g:startify_skiplist_server')
for servname in g:startify_skiplist_server
if servname == v:servername