comparison src/testdir/test_popupwin.vim @ 17231:e9ebf3f27af6 v8.1.1615

patch 8.1.1615: crash when passing buffer number to popup_create() commit https://github.com/vim/vim/commit/7866b87958cf0c2f3312f2c3d7fb8d6eed28b512 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 1 22:21:01 2019 +0200 patch 8.1.1615: crash when passing buffer number to popup_create() Problem: Crash when passing buffer number to popup_create(). (Yasuhiro Matsumoto) Solution: Initialze the window properly.
author Bram Moolenaar <Bram@vim.org>
date Mon, 01 Jul 2019 22:30:05 +0200
parents 09fa437d33d8
children 2a97167854fc
comparison
equal deleted inserted replaced
17230:eaf422739e26 17231:e9ebf3f27af6
1666 call assert_equal(1, bufloaded(buf)) 1666 call assert_equal(1, bufloaded(buf))
1667 call popup_close(winid) 1667 call popup_close(winid)
1668 call assert_equal({}, popup_getpos(winid)) 1668 call assert_equal({}, popup_getpos(winid))
1669 call assert_equal(1, bufloaded(buf)) 1669 call assert_equal(1, bufloaded(buf))
1670 exe 'bwipe! ' .. buf 1670 exe 'bwipe! ' .. buf
1671 endfunc 1671
1672 edit test_popupwin.vim
1673 let winid = popup_create(bufnr(''), {})
1674 redraw
1675 call popup_close(winid)
1676 endfunc