]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0956: completion may crash, completion highlight wrong with preview window v9.1.0956
authorglepnir <glephunter@gmail.com>
Tue, 24 Dec 2024 08:44:35 +0000 (09:44 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 24 Dec 2024 08:44:35 +0000 (09:44 +0100)
commit8d0bb6dc9f2e5d94ebb59671d592c1b7fa325ca6
treeab916b398c57bd9609677ab185d545d1aa95fb2f
parentf07c10d7bb770547ab88cf479621b06a16c09b55
patch 9.1.0956: completion may crash, completion highlight wrong with preview window

Problem:  completion may crash, completion highlight wrong with preview
          window (after v9.1.0954)
Solution: correctly calculate scroll offset, check for preview window
          when adding extra highlighting
          (glepnir)

when there have a preview window prepare_tagpreview
will change curwin to preview window and this may cause
ComplMatchIns check condition not correct. check wp is curwin
and also the type of wp is not a preview or poup info

fixes: #16284
closes: #16283

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/drawline.c
src/insexpand.c
src/popupmenu.c
src/proto/insexpand.pro
src/testdir/dumps/Test_pum_matchins_11.dump [new file with mode: 0644]
src/testdir/test_popup.vim
src/version.c