]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1011: popupmenu internal error with some abbr in completion item v9.1.1011
authorzeertzjq <zeertzjq@outlook.com>
Mon, 13 Jan 2025 06:27:43 +0000 (07:27 +0100)
committerChristian Brabandt <cb@256bit.org>
Mon, 13 Jan 2025 06:27:43 +0000 (07:27 +0100)
commit3a0cc36c69744a7727ce34311d39d2d9d8ddc6f9
tree53c481482475bc0ed98b795e5e0ffd78a1ce1cd6
parentc200f53cbb03fa11e489a27791d5b9dfc34a6564
patch 9.1.1011: popupmenu internal error with some abbr in completion item

Problem:  Popup menu internal error with some abbr in completion item.
Solution: Don't compute attributes when there is no corresponding text.
          Reduce indent in pum_redraw() while at it (zeertzjq).

fixes: #16427
closes: #16435

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/popupmenu.c
src/testdir/dumps/Test_pum_highlights_19.dump [new file with mode: 0644]
src/testdir/test_popup.vim
src/version.c