diff 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
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -1668,4 +1668,9 @@ func Test_popupwin_with_buffer()
   call assert_equal({}, popup_getpos(winid))
   call assert_equal(1, bufloaded(buf))
   exe 'bwipe! ' .. buf
+
+  edit test_popupwin.vim
+  let winid = popup_create(bufnr(''), {})
+  redraw
+  call popup_close(winid)
 endfunc