Mercurial > vim
comparison src/testdir/test_tabpage.vim @ 10076:bc30991c3e98 v7.4.2309
commit https://github.com/vim/vim/commit/11fbc2866ccc11b4dd1726abdaf582a78ef3f743
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 2 21:48:32 2016 +0200
patch 7.4.2309
Problem: Crash when doing tabnext in a BufUnload autocmd. (Dominique Pelle)
Solution: When detecting that the tab page changed, don't just abort but
delete the window where w_buffer is NULL.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 02 Sep 2016 22:00:07 +0200 |
parents | e1a8b2601fe0 |
children | 7fc6103c6651 |
comparison
equal
deleted
inserted
replaced
10075:ee84eb3ac2cc | 10076:bc30991c3e98 |
---|---|
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() | |
222 " This once caused a crash | |
223 new | |
224 tabedit | |
225 tabfirst | |
226 au BufUnload <buffer> tabnext | |
227 q | |
228 | |
229 while tabpagenr('$') > 1 | |
230 quit | |
231 endwhile | |
232 endfunc | |
233 | |
234 | |
221 " vim: shiftwidth=2 sts=2 expandtab | 235 " vim: shiftwidth=2 sts=2 expandtab |