diff options
author | luukvbaal <luukvbaal@gmail.com> | 2024-02-11 23:41:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 06:41:44 +0800 |
commit | 5a4e0b837f90862a674e965ed91d4379c5f39fd3 (patch) | |
tree | 4ee007565ba477a2e80b196cdc284f125614ca75 /test | |
parent | 9605cfe06c44df032231360fb0fcd07e3f4ae10a (diff) | |
download | rneovim-5a4e0b837f90862a674e965ed91d4379c5f39fd3.tar.gz rneovim-5a4e0b837f90862a674e965ed91d4379c5f39fd3.tar.bz2 rneovim-5a4e0b837f90862a674e965ed91d4379c5f39fd3.zip |
fix(column): use a single path for sign sorting (#27431)
Problem: #25826 added a (duplicate) sign comparison function, which was
modified and strayed from the original in #27418.
Solution: Merge the two functions and add a display test that actually
tests for this order in addition to the legacy tests.
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/ui/decorations_spec.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua index fd8a06d898..bb24b775c1 100644 --- a/test/functional/ui/decorations_spec.lua +++ b/test/functional/ui/decorations_spec.lua @@ -5160,6 +5160,18 @@ l5 | ]]} end) + + it('correct sort order with multiple namespaces and same id', function() + local ns2 = api.nvim_create_namespace('') + api.nvim_buf_set_extmark(0, ns, 0, 0, {sign_text = 'S1', id = 1}) + api.nvim_buf_set_extmark(0, ns2, 0, 0, {sign_text = 'S2', id = 1}) + + screen:expect{grid=[[ + S1S2^ | + {2:~ }|*8 + | + ]]} + end) end) describe('decorations: virt_text', function() |