comparison src/testdir/test_tabpage.vim @ 10082:7fc6103c6651 v7.4.2312

commit https://github.com/vim/vim/commit/5a49789a9b1f6447aeafbbbdd5b235dd10c471d5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 3 16:29:04 2016 +0200 patch 7.4.2312 Problem: Crash when autocommand moves to another tab. (Dominique Pelle) Solution: When navigating to another window halfway the :edit command go back to the right window.
author Christian Brabandt <cb@256bit.org>
date Sat, 03 Sep 2016 16:30:06 +0200
parents bc30991c3e98
children 13304dccb96e
comparison
equal deleted inserted replaced
10081:a7e347d09237 10082:7fc6103c6651
216 delfunction s:check_tab 216 delfunction s:check_tab
217 tabonly! 217 tabonly!
218 bw! 218 bw!
219 endfunction 219 endfunction
220 220
221 func Test_tabnext_on_buf_unload() 221 func Test_tabnext_on_buf_unload1()
222 " This once caused a crash 222 " This once caused a crash
223 new 223 new
224 tabedit 224 tabedit
225 tabfirst 225 tabfirst
226 au BufUnload <buffer> tabnext 226 au BufUnload <buffer> tabnext
227 q 227 q
228 228
229 while tabpagenr('$') > 1 229 while tabpagenr('$') > 1
230 quit 230 bwipe!
231 endwhile 231 endwhile
232 endfunc 232 endfunc
233 233
234 func Test_tabnext_on_buf_unload2()
235 " This once caused a crash
236 tabedit
237 autocmd BufUnload <buffer> tabnext
238 file x
239 edit y
240
241 while tabpagenr('$') > 1
242 bwipe!
243 endwhile
244 endfunc
245
234 246
235 " vim: shiftwidth=2 sts=2 expandtab 247 " vim: shiftwidth=2 sts=2 expandtab