comparison src/testdir/test_popupwin.vim @ 16908:df06694b761b v8.1.1455

patch 8.1.1455: popup_atcursor() not completely implemented commit https://github.com/vim/vim/commit/1762731f2039d78fc8ddd785c3d3b52e5968c0f1 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 2 19:53:44 2019 +0200 patch 8.1.1455: popup_atcursor() not completely implemented Problem: Popup_atcursor() not completely implemented. Solution: Add the default for the "moved" property.
author Bram Moolenaar <Bram@vim.org>
date Sun, 02 Jun 2019 20:00:06 +0200
parents 9138e2c60bf1
children ba7727889385
comparison
equal deleted inserted replaced
16907:eaf7f6fefdb6 16908:df06694b761b
1007 call assert_equal(1, popup_getpos(winid).visible) 1007 call assert_equal(1, popup_getpos(winid).visible)
1008 call feedkeys("eli\<Esc>", 'xt') 1008 call feedkeys("eli\<Esc>", 'xt')
1009 call assert_equal({}, popup_getpos(winid)) 1009 call assert_equal({}, popup_getpos(winid))
1010 popupclear 1010 popupclear
1011 1011
1012 " WORD is the default
1012 exe "normal gg0/WORD\<CR>" 1013 exe "normal gg0/WORD\<CR>"
1013 let winid = popup_atcursor('text', {'moved': 'WORD'}) 1014 let winid = popup_atcursor('text', {})
1014 redraw 1015 redraw
1015 call assert_equal(1, popup_getpos(winid).visible) 1016 call assert_equal(1, popup_getpos(winid).visible)
1016 call feedkeys("eli\<Esc>", 'xt') 1017 call feedkeys("eli\<Esc>", 'xt')
1017 call assert_equal(1, popup_getpos(winid).visible) 1018 call assert_equal(1, popup_getpos(winid).visible)
1018 call feedkeys("wi\<Esc>", 'xt') 1019 call feedkeys("wi\<Esc>", 'xt')