Commits

ZyX_I committed 88c97a7

Launch write only on BufLeave

Reason: with BufWinLeave buffer being written (the current one) is sometimes not
the same as buffer autocommand was created for. Thus as I don’t know
a way to write another buffer without switching to it and a big bunch of
possible undesired side effects of switching BufWinLeave event was
removed.

Comments (0)

Files changed (1)

autoload/aurum/record.vim

         call s:F.edit(a:bvar, 'aurum://edit:'.fullpath, 0)
         if s:_f.getoption('recautowrite')
             augroup AuRecordAutowrite
-                autocmd! BufWinLeave,BufLeave <buffer> nested
-                            \ write
+                autocmd! BufLeave <buffer> nested write
             augroup END
         endif
         if a:bvar.undo_full