Mercurial > vim
diff src/testdir/test_popupwin.vim @ 17754:65b89c9eb946 v8.1.1874
patch 8.1.1874: modeless selection in popup window overlaps scrollbar
commit https://github.com/vim/vim/commit/4dd751b95696957c7baabad2f19f9e02fc596eae
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 17 19:10:53 2019 +0200
patch 8.1.1874: modeless selection in popup window overlaps scrollbar
Problem: Modeless selection in popup window overlaps scrollbar.
Solution: Subtract scrollbar from max_col. (closes https://github.com/vim/vim/issues/4773)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 17 Aug 2019 19:15:06 +0200 |
parents | 6a73e3bd0ff8 |
children | c75da1064e33 |
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -506,11 +506,12 @@ func Test_popup_select() let lines =<< trim END set clipboard=autoselect call setline(1, range(1, 20)) - let winid = popup_create(['the word', 'some more', 'several words here'], #{ + let winid = popup_create(['the word', 'some more', 'several words here', 'invisible', '5', '6', '7'], #{ \ drag: 1, \ border: [], \ line: 3, \ col: 10, + \ maxheight: 3, \ }) func Select1() call feedkeys("\<F3>\<LeftMouse>\<F4>\<LeftDrag>\<LeftRelease>", "xt")