Fix autosave for non-file buffers

This commit is contained in:
Talia 2020-08-19 17:35:34 +02:00
parent 01624e0c71
commit a7c32a1167

View file

@ -1,11 +1,9 @@
" Extend autosavefeature :)
function! TryAutosave()
if &autowriteall
if &mod
silent write
if &autowriteall && &mod && &buftype==""
silent write
redraw
end
end
endfunction