]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1305: completion menu active after switching windows/tabs v9.1.1305
authorglepnir <glephunter@gmail.com>
Tue, 15 Apr 2025 17:02:00 +0000 (19:02 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 15 Apr 2025 17:02:00 +0000 (19:02 +0200)
commitcf7f01252f00061876f7eb14dbf74342a55a13a1
tree1621939248f34f9707c5a9f4172c1153ed97b743
parentbabdb0554a44a5e406a499bf8c315e660b2a028e
patch 9.1.1305: completion menu active after switching windows/tabs

Problem:  When switching to another window or tab page while the
          completion menu is active, the menu stays visible, although it
          belongs to the previous window/tab page context (Evgeni
          Chasnovski).
Solution: Track the window and tab page where completion started. Detect
          changes in the main editing loop and cancel completion mode if
          the current window or tab page differs from where completion
          started.

fixes: #17090
closes: #17101

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/edit.c
src/insexpand.c
src/proto/insexpand.pro
src/testdir/dumps/Test_switchwin_clear_pum_01.dump [new file with mode: 0644]
src/testdir/dumps/Test_switchwin_clear_pum_02.dump [new file with mode: 0644]
src/testdir/dumps/Test_tabnext_clear_pum_01.dump [new file with mode: 0644]
src/testdir/dumps/Test_tabnext_clear_pum_02.dump [new file with mode: 0644]
src/testdir/test_popup.vim
src/version.c