summaryrefslogtreecommitdiff
path: root/src/testdir/test_popupwin_textprop.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-11-16 20:03:31 +0100
committerBram Moolenaar <Bram@vim.org>2019-11-16 20:03:31 +0100
commita37cb55da6ba44c5e85a22b03a91e1b663aceddf (patch)
treed849289e4512042e6d1a86ebba9ebdbd8d033d0d /src/testdir/test_popupwin_textprop.vim
parentf36a2c7e60d86b1a1733a8f51ed72da9c6f76eb8 (diff)
downloadvim-git-a37cb55da6ba44c5e85a22b03a91e1b663aceddf.tar.gz
patch 8.1.2307: positioning popup doesn't work for buffer-local textpropv8.1.2307
Problem: Positioning popup doesn't work for buffer-local textprop. Solution: Make it work. (closes #5225)
Diffstat (limited to 'src/testdir/test_popupwin_textprop.vim')
-rw-r--r--src/testdir/test_popupwin_textprop.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testdir/test_popupwin_textprop.vim b/src/testdir/test_popupwin_textprop.vim
index 8a68f15d7..b1127557c 100644
--- a/src/testdir/test_popupwin_textprop.vim
+++ b/src/testdir/test_popupwin_textprop.vim
@@ -13,10 +13,11 @@ func Test_textprop_popup()
50
normal zz
set scrolloff=0
- call prop_type_add('popupMarker', #{highlight: 'DiffAdd'})
+ call prop_type_add('popupMarker', #{highlight: 'DiffAdd', bufnr: bufnr('%')})
call prop_add(50, 11, #{
\ length: 7,
\ type: 'popupMarker',
+ \ bufnr: bufnr('%'),
\ })
let winid = popup_create('the text', #{
\ pos: 'botleft',
@@ -68,6 +69,7 @@ func Test_textprop_popup_corners()
let winid = popup_create('bottom left', #{
\ pos: 'botleft',
\ textprop: 'popupMarker',
+ \ textpropwin: win_getid(),
\ padding: [0,1,0,1],
\ })
let winid = popup_create('bottom right', #{