1. ZyX_I
  2. aurum


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

  • Participants
  • Parent commits 602de5e
  • Branches default

Comments (0)

Files changed (1)

File autoload/aurum/record.vim

View file
         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
         if a:bvar.undo_full