Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
18228:228e73d84c32 | 18229:e6c83ae0c4d0 |
---|---|
2554 let winid = 'nothing wrong'->popup_notification({}) | 2554 let winid = 'nothing wrong'->popup_notification({}) |
2555 call assert_equal(bufnr, winbufnr(winid)) | 2555 call assert_equal(bufnr, winbufnr(winid)) |
2556 call popup_clear() | 2556 call popup_clear() |
2557 endfunc | 2557 endfunc |
2558 | 2558 |
2559 func Test_popupwin_getoptions_tablocal() | |
2560 topleft split | |
2561 let win1 = popup_create('nothing', #{maxheight: 8}) | |
2562 let win2 = popup_create('something', #{maxheight: 10}) | |
2563 let win3 = popup_create('something', #{maxheight: 15}) | |
2564 call assert_equal(8, popup_getoptions(win1).maxheight) | |
2565 call assert_equal(10, popup_getoptions(win2).maxheight) | |
2566 call assert_equal(15, popup_getoptions(win3).maxheight) | |
2567 call popup_clear() | |
2568 quit | |
2569 endfunc | |
2570 | |
2559 " vim: shiftwidth=2 sts=2 | 2571 " vim: shiftwidth=2 sts=2 |