From ad191be65e2b1641c181506166b1037b548d14a8 Mon Sep 17 00:00:00 2001 From: Tobias Schmitz Date: Tue, 21 May 2024 18:21:42 +0200 Subject: 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 --- test/functional/api/extmark_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/functional/api/extmark_spec.lua') diff --git a/test/functional/api/extmark_spec.lua b/test/functional/api/extmark_spec.lua index 5ab3e09bf8..7b2fe209ba 100644 --- a/test/functional/api/extmark_spec.lua +++ b/test/functional/api/extmark_spec.lua @@ -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 | -- cgit