diff src/testdir/test_popupwin.vim @ 18229:e6c83ae0c4d0 v8.1.2109

patch 8.1.2109: popup_getoptions() hangs with tab-local popup Commit: https://github.com/vim/vim/commit/1824f45883ef7cc236d2bba89811989a1ccb853c Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 2 23:06:46 2019 +0200 patch 8.1.2109: popup_getoptions() hangs with tab-local popup Problem: popup_getoptions() hangs with tab-local popup. Solution: Correct pointer name. (Marko Mahni?, closes https://github.com/vim/vim/issues/5006)
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Oct 2019 23:15:03 +0200
parents 781a81bf4d24
children 25535ef50842
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -2556,4 +2556,16 @@ func Test_popupwin_recycle_bnr()
   call popup_clear()
 endfunc
 
+func Test_popupwin_getoptions_tablocal()
+  topleft split
+  let win1 = popup_create('nothing', #{maxheight: 8})
+  let win2 = popup_create('something', #{maxheight: 10})
+  let win3 = popup_create('something', #{maxheight: 15})
+  call assert_equal(8, popup_getoptions(win1).maxheight)
+  call assert_equal(10, popup_getoptions(win2).maxheight)
+  call assert_equal(15, popup_getoptions(win3).maxheight)
+  call popup_clear()
+  quit
+endfunc
+
 " vim: shiftwidth=2 sts=2