feat(signs)!: place higher-priority signs from the left #27781

Problem:
Higher-priority signs may be hidden by lower-priority signs.

Solution:
Place higher-priority signs from the left.

Example:

    nvim_buf_set_extmark(0, ns, 0, -1, {sign_text='H', priority=1})
    nvim_buf_set_extmark(0, ns, 0, -1, {sign_text='W', priority=2})
    nvim_buf_set_extmark(0, ns, 0, -1, {sign_text='E', priority=3})

Before:

            |     |
          H | W E |
          ^ |     |
Not visible

After:

  |     |
  | E W | H
  |     | ^
          Not visible

Fixes #16632
This commit is contained in:
Tobias Schmitz
2024-05-21 18:21:42 +02:00
committed by GitHub
parent 8263ed4670
commit ad191be65e
8 changed files with 54 additions and 52 deletions

View File

@@ -1743,7 +1743,7 @@ describe('API/extmarks', function()
command('silent undo')
screen:expect([[
S1{7: }^aaa bbb ccc |
S1S2aaa bbb ccc |
S2S1aaa bbb ccc |
S2{7: }aaa bbb ccc |
{7: }aaa bbb ccc |*2
|