" Using :blast and :ball for many events caused a crash, because b_nwindows was
" not incremented correctly.
func Test_autocmd_blast_badd()
+ " The system() here causes SetChangeMarks() to fail, when run in the GUI
+ " under Windows. No idea why. Happens with any external command, not
+ " related to the actual test.
+ " TODO: find the cause
+ if has('win32')
+ throw 'Skipped: calling system() causes problems'
+ endif
+
let content =<< trim [CODE]
au BufNew,BufAdd,BufWinEnter,BufEnter,BufLeave,BufWinLeave,BufUnload,VimEnter foo* blast
edit foo1