Re: [patch] Behavior of autocmd BufNew with tabedit is strange

2016-10-08 Fir de Conversatie h_east
Hi Bram, 2016-10-8(Sat) 23:44:20 UTC+9 Bram Moolenaar: > Hirohito Higashi wrote: > > > How to reproduce: > > - Prepare the following script file > > $ cat sample.vim > > > > e aa.txt > > augroup sample > > autocmd! > > autocmd BufNew * tabedit cc.txt > > Hmm, starting to edit another

Re: [patch] Behavior of autocmd BufNew with tabedit is strange

2016-10-08 Fir de Conversatie Bram Moolenaar
Hirohito Higashi wrote: > How to reproduce: > - Prepare the following script file > $ cat sample.vim > > e aa.txt > augroup sample > autocmd! > autocmd BufNew * tabedit cc.txt Hmm, starting to edit another file in a BufNew autocmd event is just asking for trouble. In general this should

[patch] Behavior of autocmd BufNew with tabedit is strange

2016-10-08 Fir de Conversatie h_east
Hi Bram and list, How to reproduce: - Prepare the following script file $ cat sample.vim e aa.txt augroup sample autocmd! autocmd BufNew * tabedit cc.txt augroup END normal! i1 tabedit bb.txt - Run vanilla Vim with above script file $ vim -Nu NONE -S sample.vim Expected behavior (I