]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1707: Cannot wrap around in popup_filter_menu() v9.0.1707
authorChristian Brabandt <cb@256bit.org>
Sun, 13 Aug 2023 17:25:28 +0000 (19:25 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 13 Aug 2023 17:27:46 +0000 (19:27 +0200)
commitbadeedd913d9d6456ad8087911d024fd36800743
treece3b2ba3e9e373dcc8d86fba823d847f97ef7639
parent02551c9de0895dbe9105bd577e59c1fdde44355a
patch 9.0.1707: Cannot wrap around in popup_filter_menu()

Problem: Cannot wrap around in popup_filter_menu()
Solution: Allow to wrap around by default

Currently, it is not possible, to wrap around at the end of the list
using e.g. down (and go back to the top) or up at the beginning of the
list and go directly to the last item. This is not consistent behaviour
with e.g. how the pum-menu currently works, so let's just allow this.

Also adjust tests about it.

closes: #12689
closes: #12693

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/popupwin.c
src/testdir/dumps/Test_popupwin_menu_scroll_3.dump
src/testdir/dumps/Test_popupwin_menu_scroll_3a.dump [new file with mode: 0644]
src/testdir/dumps/Test_popupwin_menu_scroll_6.dump
src/testdir/dumps/Test_popupwin_menu_scroll_6a.dump [new file with mode: 0644]
src/testdir/test_popupwin.vim
src/version.c