Mercurial > vim
diff src/testdir/test_popupwin.vim @ 18588:7dfdc319f4ff v8.1.2288
patch 8.1.2288: not using all space when popup with "topleft" flips to above
Commit: https://github.com/vim/vim/commit/5c6b6187ac51a4d8545e823c1be6cdf70cac8a57
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 10 17:51:38 2019 +0100
patch 8.1.2288: not using all space when popup with "topleft" flips to above
Problem: Not using all space when popup with "topleft" flips to above.
Solution: Recompute the height when a popup flips from below to above.
(closes #5151)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 10 Nov 2019 18:00:03 +0100 |
parents | 78e43be18f6b |
children | b10ef01555c8 |
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -389,9 +389,9 @@ func Test_popup_nospace() \ border: [], \ }) " cursor in a line in top half, using "topleft" with popup that - " doesn't fit and "posinvert" set: flips to below. + " doesn't fit and "posinvert" set: flips to above. normal 8G44|r% - let winid1 = popup_create(['one', 'two', 'tee'], #{ + let winid1 = popup_create(['one', 'two', 'tee', 'fou', 'fiv'], #{ \ line: 'cursor+1', \ col: 'cursor', \ pos: 'topleft',