]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1660: popups without decoration are positioned wrong at bottom of screen v9.1.1660
authorglepnir <glephunter@gmail.com>
Wed, 20 Aug 2025 19:43:15 +0000 (21:43 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 20 Aug 2025 19:43:15 +0000 (21:43 +0200)
commit38315295efe43ec3a8e26d6428f819337519f13b
tree534989c2ea726a506c0eadc0365b7f6d784c2482
parentbb1233d328f593a951fd890d0de3bccdee227ae4
patch 9.1.1660: popups without decoration are positioned wrong at bottom of screen

Problem:  Popups without border/padding/title don't flip position when
          cursor is near bottom of screen, while decorated popups do
          flip correctly.
Solution: Use original height instead of truncated height for position
          inversion check, except for info popups to preserve existing
          behavior (glepnir).

fixes: #12546
closes: #18054

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/popupwin.c
src/testdir/dumps/Test_popupwin_bottom_position_without_decoration.dump [new file with mode: 0644]
src/testdir/test_popupwin.vim
src/version.c