Mercurial > vim
diff src/testdir/test_popupwin.vim @ 18398:21c25bee9df8 v8.1.2193
patch 8.1.2193: popup_setoptions(popup_getoptions()) does not work
Commit: https://github.com/vim/vim/commit/a13961536e5b1e686574826d4ed713e3d5526715
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 20 18:46:05 2019 +0200
patch 8.1.2193: popup_setoptions(popup_getoptions()) does not work
Problem: Popup_setoptions(popup_getoptions()) does not work.
Solution: Also accept a list with three entries for "moved" and
"mousemoved". (closes #5081)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 20 Oct 2019 19:00:03 +0200 |
parents | ba5d8c5d77d7 |
children | ee8db42dacf6 |
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -170,6 +170,10 @@ func Test_popup_with_border_and_padding( call assert_equal(['Top', 'Right', 'Bottom', 'Left'], options.borderhighlight) call assert_equal(['1', '^', '2', '>', '3', 'v', '4', '<'], options.borderchars) + " Check that popup_setoptions() takes the output of popup_getoptions() + call popup_setoptions(winid, options) + call assert_equal(options, popup_getoptions(winid)) + let winid = popup_create('hello both', #{line: 3, col: 8, border: [], padding: []}) call assert_equal(#{ \ line: 3,