]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0124: display of below/right virtual text with non-virtual text overlap v9.1.0124
authorDylan Thacker-Smith <dylan.ah.smith@gmail.com>
Wed, 21 Feb 2024 20:00:59 +0000 (21:00 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 21 Feb 2024 20:00:59 +0000 (21:00 +0100)
commit8055721c2d30f21cfabe7453014f526e7becfc06
tree4e6d72393c68879f95ccdc4a7ee8513dc4fc7294
parentec9c32637f566f38d097c566209d85d697182153
patch 9.1.0124: display of below/right virtual text with non-virtual text overlap

Problem:  Virtual text with text_align 'right'/'below' wasn't being
          used when a non-virtual text property overlaps with the end of
          the line. This was because the non-virtual text property had a
          higher priority, preventing the virtual text from being used.
Solution: Fix the sorting of text properties so virtual text properties
          have a higher priority than non-virtual text properties.
          (Dylan Thacker-Smith)

related: #14063

Signed-off-by: Dylan Thacker-Smith <dylan.ah.smith@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/dumps/Test_virtual_text_overlap_with_highlight_1.dump [new file with mode: 0644]
src/testdir/test_textprop.vim
src/textprop.c
src/version.c